C4GL doesn't use optimization?
Posted in 1994
We are installing c4gl at a site where all development has previously been done in RDS. I was a little suprised to read the c4gl script and find that it calls the "rcc" compiler without any optimizer flags, particularly "-O". (The development system has SCO 3.2.?) I decided to experiment a little and slip in the -O compiler option. After recompiling, some programs were 100K-200K smaller. There may also be a speed improvement, although it is probably negligible. Does anybody know a reason the optimizer phase should not be used? I know from examination of some generated C code that Informix creates dead code often, probably because it has no real optimization of its own, so it seems that it could benefit a lot from the C optimizer. On a similar vein, why not link to the shared C library, using -lc_s? It shrinks my executables further by about 16KB. I've tested several programs this way with no apparent ill effects. Thanks in advance. -- Jeff Sturm jsturm@mail.msen.com