Re: [ooc-compiler] Windows headers
Brought to you by:
mva
|
From: Norayr C. <no...@ar...> - 2011-08-03 14:51:46
|
I usually disable both gc and libs by using --disable-libs --without-gc configure options. This way I get even more fat binaries, cause oo2c libs are statically linked. However, resulting program does not require liboo2c.so anymore. Sincerely, Norayr On 08/02/11 12:53, Stewart Greenhill wrote: > Hi Alexander, > > On 2/08/11 2:40 PM, Alexander Iljin wrote: >> Hello, Stewart! >> >>> strip Example4.exe >> >> I didn't know that either! Thanks for the hint, now it's 108 Kb, which is more tolerable. >> I think to truly shine it should be build with -O2 option (currently it's -ggdb instead), >> and I could remove the GC, since it is never used. But I'll leave that tweaking for >> another day, unless you have a prepared recipe. > > OK, that's more like it. In my experience, the GC takes about 100K. You > can remove the GC, but I can't remember how to do it. Another option > (once you've debugged stuff) for optimising is --no-rtc which disables > run-time checking, and may also speed up object/pointer-heavy code. > >>> Unfortunately, there's no support for unsigned integers - everything is >>> mapped to signed types. I don't know of any Oberon dialects that include >>> unsigned integer types. >> >> XDS Oberon-2 compiler supports unsigned integers in the form of SYSTEM.CARD8, >> SYSTEM.CARD16 and SYSTEM.CARD32. But then again, the XDS compiler also >> supports Modula-2, and allows you to mix the two languages in one project (as >> separate modules which can import one another). > > Sound useful, especially for interfacing to foreign code. Often it makes > little difference (eg. integer addition), and providing nothing special > happens on overflow you can live with the results. Probably most > annoying is where you need constants that fill the entire width of the > type - these sometimes have to be converted to negative numbers to stop > the compiler complaining. > > Cheers, > Stewart > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > ooc-compiler mailing list > ooc...@li... > https://lists.sourceforge.net/lists/listinfo/ooc-compiler > |