Jump to content
IGNORED

Where is the LIGHTSPEED?


funkheld

Recommended Posts

Has anyone put together a comparison review from a programmer's perspective of the "C" languages for Atari 8-bit, going over their respective strengths and weaknesses as well as their relationship with modern 'C' ?

 

I've never ventured into C, but since it seems like something that can be carried forward into contemporary programming on PC or Mac (?), it does have me curious.

 

Thanks, in advance!

--Tim

Link to comment
Share on other sites

Yea, I always wondering how good those old compilers were. I suspect they weren't that good but one could write specific benchmarks to test em, like these. http://benchmarksgame.alioth.debian.org/. Of course, I'd also want to test it with a cross-compiler which, I suspect, will do the best job at it.

Link to comment
Share on other sites

I've always been interested in which languages did the tightest/fastest code. Been looking to get back into some development but alas, I'd have to set up a dev environment of some kind... don't even know where to start right now.

Well, it might be fun to take that code that is made available on that page and adapt it for each compiler. The run em to see which is faster. That shouldn't be that hard.

Link to comment
Share on other sites

I've always been interested in which languages did the tightest/fastest code. Been looking to get back into some development but alas, I'd have to set up a dev environment of some kind... don't even know where to start right now.

For this effort, if you have a C compiler, start with no optimization switch, examine the binary via disassembler, and then repeat for each optimization switch that the compiler supports.

 

While usually nothing beats the hand-optimized assembly, when you have a more complex CPU (say, a RISC), then a compiler may actually make a better job, as it can go (brute-force) through all permutations of rearranging instructions (to improve interleaving).

 

 

From my experience, the fastest way to get something working is to use a high-level language and just write the time-critical parts in assembler. The best IDE/language that I found that supported inline assembler was TurboPascal 6.0 on 80286. You wrote all your basic code in pascal, and then simply inlined ASM for performance-sensitive features. It was amazing - you got best of both worlds:

- quick prototyping for base infrastructure of the code in Pascal

- once the shit was working, you just inlined assembler for the rendering (or other performance-critical) functionality, right there - in the middle of your pascal code (or, you could write asm-only functions)

 

This way, you get something up&running very quickly, and then only focus on optimizing (ASM) on what needs to be optimized.

 

 

Not sure, if there's any language/IDE like that available for Atari 800, though...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...