wongck wrote:The output executable from gcc are large.
A simple hello world executable was size over 100K+. Stripping it reduce it to 80K+.
Are there any switches to reduce the size?
wongck wrote:Pure C... yes. I been using that for the last 18 years or so.... and Laser C before that.
I am at home with Pure C, just that I am thinking of some Mint programming.
joska wrote:What kind of "MiNT programming" are you thinking of? There's nothing in MiNT that prevents you from using PureC. Or are you thinking about ported stuff?
wongck wrote:joska wrote:What kind of "MiNT programming" are you thinking of? There's nothing in MiNT that prevents you from using PureC. Or are you thinking about ported stuff?
I am thinking of writting a device driver for a serial-USB thingy - USBwiz, or at least for the last 2 years or so among other things.
I read from somewhere that there are differences in the way the functions are called and sizes of integers/long which may give interfacing issues.
joska wrote:This is not a problem. You can set PureC to call functions by putting the arguments on the stack like MiNT expects. And long is the same in PureC and gcc, but PureC has 16 bit ints instead of gcc's 32 bit. Just use longs, or use AHCC which is PureC-compatible (and almost as fast) but can also use 32 bit ints.
Users browsing this forum: No registered users and 2 guests