Re: Should Delphi be able to export projects to FPC?



Farshad wrote:

Until recent versions of FPC/Lazarus IDE the -Xs option wasn't working properly and you had to run the strip manually which was not a good thing.

It's true that the -Xs option didn't always work, but in that case you could have configured Lazarus to run the strip command automatically after a Build or Compile (options also available in Compiler Options dialog).

The weakness is that Lazarus doesn't offer a way to distinctly separate RELEASE and DEBUG builds. Which I beleive must be implemented in future releases.

That has been suggested. But with all open source projects - features get added much quicker when the requests are accompanied with a patch. :-)


Once you app is complete and tested and ready for shipping, THEN ONLY do you remove/disable debug information and create a stripped down executable.

Yes, but wouldn't it be better to simply switch it from DEBUG mode to RELEASE instead of manually adjusting some switches that you may not remember always.

Or do what I did - in the mean time, while Lazarus IDE doesn't have Release or Debug project modes. I'm not afraid of the command line. :) So I created a build script to accomplish that. Depending on the parameter passed to the build script it will generate a Release or Debug build. FPC can read compiler options from external config files. The script decides which one to use.

eg:
fpc @releasebuild.cfg <projectfile>
fpc @debugbuild.cfg <projectfile>

For me, this was quicker that customising the IDE and creating a new project options dialog.

Regards,
- Graeme -


_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

.



Relevant Pages

  • HOWTO: Remotely debug classic ASP in Visual Studio 2005
    ... i am still no closer to being able to debug ... ASP not ASP.NET ... Connect to, or expand, the web-server running the web-site is you want ... Check the "Enable ASP server-side script debugging" checkbox. ...
    (microsoft.public.vsnet.debugging)
  • HOWTO: Remotely debug classic ASP in Visual Studio 2005
    ... i am still no closer to being able to debug ... ASP not ASP.NET ... Connect to, or expand, the web-server running the web-site is you want ... Check the "Enable ASP server-side script debugging" checkbox. ...
    (microsoft.public.vsnet.debugging)
  • MySQL+foreach loop.........roy
    ... I have doing some modification on my previous script. ... Retrieve file names, ... for the next step, test it, and debug. ... this code block and will not be defined outside the foreach loop. ...
    (perl.beginners)
  • Re: [SLE] emailing myself when a ping command fails via crontab????
    ... but I have a perl script to monitor a webserver. ... First the script tries to ping it's DNS servers, ...
    (SuSE)
  • Re: Dynamically include client-side javascript 2
    ... You can't use any Controls outside of a WebForm. ... the script doesn't seem to be registering. ... >>I have a debug component that writes certain info into a DIV so that I ... >>browser when I scroll it. ...
    (microsoft.public.dotnet.framework.aspnet)