Best C Compiler with IDE

  • Thread starter Thread starter davideo
  • Start date Start date
  • Replies Replies 25
  • Views Views 12511
@Chaos Lord

I think they all do in truth. while that simple issue I don't remember seeing with DICE (which uses a similar Lattice v4 C compiler) - I do remember fixing heavy conditioned loops on more than one occasion.

For the most part though DICE is as good as you are as a coder. So if your logic is sound and you build on tight register variable loops then you often get good code from it. However if logic is sloppy and thrawt with a ton of nested conditions...

the resulting code is an absolute horrid horror to look at under the ASM output.

Once I am happy with a function / asm output I generally hit the linker up and compile down to object code, usually by updating the toolbox.c - makes for better compile times, and also allowed me to draw / underling the function as done

In regards to watches and debuggers.... since I used text files - no IDE... there is no environment to watch vars or debug / step though code - it was printf statements logging out the functions.... working out on scribble paper what was going on and where... pacing in the kitchen with coffee in one hand and cigarette in the other (although I quit smoking 8 years ago!) trying to track down that void pointer!
 
Have been using vbcc to cross compile for AmigaOS on OS X for a while now.

Followed this guide:
http://lallafa.de/blog/2011/08/vbcc-0-9b-an-amiga-cross-compiler-for-mac-os-x/

Works well with the 3.9 NDK includes, produces small binaries, has standard C functions implemented (and possibility to not use them) as well as an own free implementation of amiga.lib (both regular and small data model version of it).

I'm afraid someone else is needed to judge the quality of the generated assembler though.
 
Has anyone actually benchmarked the different compilers against eachother? That would be really interesting to see!

I'm a bearded 'ole BSD fart and prefer proper CLI tools without any IDE getting in my way and giving me rashes, so I've mostly used various old versions of Geek Gadgets GCC. I know there are versions as new as at least GCC 4.5 available natively for m68k-amigaos, but I've seen them getting slower and slower (and memory hungrier to match) with each release, supposedly without any gain in code generation quality (some even claim that newer versions of GCC produce WORSE code).

With UAE I guess speed and memory consumption is somewhat less of an issue - it would be really interesting to see how the compilers (SAS, Storm, VBCC, GCC, ...?) actually compare in terms of code generation quality.
Has anyone done such benchmarks?

Regards,
ali:)
 
Back
Top Bottom