-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 17.03.2014 08:16, schrieb Valentin Dudouyt: > Hello everybody, > > I'm using STM8S Standard Periphal Library and found that blinky > occupies 3287 bytes after linking with GPIO module (and it even > wouldn't fit in memory if I'll also enable UART). > > Accordingly to the linker's report and my digging in SPL code, I > could save the whole 3068 bytes by removing all functions but > GPIO_Init and GPIO_WriteReverse. Is it possible to do something > like that with SDCC? > > Best Regards, > > Valentin
If the symbols are in separate modules in a library the linker only includes those modules that are necessary. This should just work. Philipp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlMnVdcACgkQbtUV+xsoLpp8hACfVFSMFA3WVyL17Ieb7obTdLgj CYsAnjihEwG4K5WzqPAEL4eqpNAf/RQ7 =8Fz2 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user