Afficher un message
Vieux 06/05/2008, 19h33   #1
Morris Dovey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut [OT] lcc first experience

About a week ago, I downloaded Jacob's lcc package to my new (to me)
Win/XP box and gave it a test drive this morning. The application
program reads my web server's log file (currently about 35MB) and
reduces it to a bunch of lists, then outputs the log contents arranged
by each requestor's chronological list of hits. It's not really a
strenuous test, but there's plenty of opportunity to screw up multiple
levels of indirection, etc.

The program was originally written on a Linux system and compiled/linked
using the gcc toolchain.

With the "pedantic" option it warned (8 times) about "Assignment within
a conditional expression" but was otherwise friendly. The executable was
some larger than I recollected the gcc version had been, but shrank by
8KB when I used the -O (peephole optimizer) option. I think that puts
the size in the same ballpark with the gcc-compiled (with -O3) version.

The only other C compiler I have for my current environment is TurboC
V3.0 - an old friend, but not always convenient in current MS platforms.
Unless I discover a particular need to use TC3 (or discover some
horrible in lcc), I'll probably stick with lcc.

My application (written in standard-compliant C, of course <g>) ported
without any change and ran without any problem.

I read comment in another thread that prompted me to comment and say to
Jacob:

Merci/Thanks/Gracas/Gracias/Ashkurak/Spasibo!

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
  Réponse avec citation
 
Page generated in 0,06200 seconds with 9 queries