[AWS] Compiling hello_world errors
Pascal Obry
pascal at obry.net
Sun Oct 21 10:18:46 CEST 2007
Jilani,
> Ok, it works. Thank you.
Good to hear!
> Now I have 2 other questions :-)
> 1. the executable file "hello_world" is huge (almost 2 MB). Is there a
> way to get a thinner executable, a part using upx?
Because it is probably compiled in debug mode so it ends up with all the
debug information in it. To remove the debug info:
$ strip hello_world.exe
Note also that also using shared libraries (don't remember if it was
properly supported in AWS 2.3.0) will reduce the executable size. An AWS
hello_world compiled with shared libraries an no debug symbols should be
around 20kb IIRC.
> 2. For a canonical compilation, without using GNAT Project, how to do?
Frankly who would like to build anything without a project file at this
point :) ??? Anyway you can use the generated gnat.adc file (see GNAT
User's Guide about the way to use it) that should be in .build/debug or
.build/release depending on the build model used.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
More information about the AWS
mailing list