-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 13.07.2011 04:24, schrieb Lin Rongrong:
> --max-allocs-per-node 100 reduced compile time to 5 minutes. But it 
> generated larger code size than 3.0.1, caused a bank overflow in my case and 
> thus can not generate a binary file to test whether the result is correct or 
> wrong.
> 
> Woody

Is all of your application in one .c file? If not you should be able to
do what I did today to track down and fix a bug in memcpy() parameter
passing:

Compile everything normally (takes some time).
recompile individual files with --oldralloc
(e.g. by adding --oldralloc in your Makefile, then doing
touch a.c && make
touch b.c && make
touch c.c && make

and testing after each make. That way you only have to rebuild one file
at a time which should be faster. The moment a bug disappears, you have
found the problematic file. Now recompile everything normally again to
reduce binary size.
The try values of --max-allocs-per-node on the identified problematic
file. You should be able to use much lower --max-allocs-per-node values
this time, since all other files will be rather small, and only the one
you're investigating will be compiled with the lower value.

Philipp

P.S.: Maybe your problem was the bug I fixed today, so use current sdcc
for testing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4d+0YACgkQbtUV+xsoLpphkgCeMsJG5a35Fyp1obawxoUQHL3u
Ek4AnA3/ONhTkJtGWwmTCvVFA6setPwj
=EujJ
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to