I have created a feature request: #675.

Took a brief look at what it would take to implement this myself. Seems like it's just a question of adding something like the following into preProcess() in SDCCmain.c:

if (optimize.codeSpeed)
    addSet (&preArgvSet, Safe_strdup ("-D__SDCC_OPTIMIZE_SPEED"));
if (optimize.codeSize)
    addSet (&preArgvSet, Safe_strdup ("-D__SDCC_OPTIMIZE_SIZE"));

But I have absolutely no idea where to even start trying to build my own copy of SDCC and test it. :-)

Regards,
Basil

On 25/04/2020 13:11, Philipp Klaus Krause wrote:
Am 25.04.20 um 08:27 schrieb Basil Hussain:
Hi all,

Are there any predefined macros that indicate what level of optimisation
SDCC is compiling with?
No. Feel free to open a feature request
(https://sourceforge.net/p/sdcc/feature-requests/).

Philipp


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to