Hello whomever you are, The code is bigger because SDCC is made by a few hobbyists, not by trained professionals who can spend all day working on it.
The iram-size is 256 bytes on the DS89C430. So remove the option and keep the default. The ram-size is 1kB but if you don't want to use / initialize it use --no-xinit- opt. Intel hex files (.ihx) do not contain debugging information. For that you need to use the .cdb file or the OMF file without extension. Not only is function inlining not supported, it even generates errors as can be seen in this bug report: http://sourceforge.net/tracker/index.php?func=detail&aid=1478649&group_i d=599&atid=100599 But function inlining is not in general good for optimized size, it's mostly good for speed. > Hi list. I'm new in the 8051 world and I'm moving from Pic Micro. I have > some questions about the options of SDCC.The first is: Why the code > generate is a litle bigger than other compilers? I think I don't using > the right options of the compiler. But I don't know what can I do. > I'm using a Dallas DS89C430, whitout external memory, yust a uC and the > crystal. When compile, use: > sdcc --xram-size 0 --code-size 0x3FFF --iram-size 128 mysource.c > When compile, load the ihx file with boot loader and run. But, the > question is: The options pass to sdcc are right? There are other options > to minimize code diferent from the optimizer options? The ihx include > debug information? > > Other question, some compilers have a litle option to make inline > functions, this is, the function exist in the code but the binary file > generated replace the called function with the real code of the funtion. > With this is easy make functions to use hardware device like a timers > without add all code needed for the standar functions. SDCC have > something like that? I view and test the _naked function but is not the > same, with the _naked option the function code is put in other memory > space and the "call" is needed to access the functions, this add some > code. With the inline functions, the call to the function is repleace > with the real code of the function. Is made yust for make the code more > easy to read. > > Thank's Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user