Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Xanaa on June 30, 2008, 02:46:37 AM
-
Hi,
I want to try to do some programing. I have this program Manx
(1988) with the book and orig. disks. Is this good to start
with or is there other programs that is better or more easy to use?
Thanks,
Xanaa :-)
-
Usually you will find that the non oficial Amiga standart is the SAS C compiler.
On the RKMs there are some references to the Aztec C.
I Believe is a nice start. I am a non standart guy, I use Hi Speed Pascal on the Amiga.
Good luck !
-
I believe Aztec C (by Manx) is a decent retro Amiga C compiler. It's not as popular as SAS/C, but it'll do the job. If you stick to example code from the era (circa 1990) you'll do fine.
The problem comes when you want to move on to more modern programming standards such as ANSI C which allows for more portable code. For that I'd suggest VBCC for C programming.
So the bottom line is: if you want to learn retro Amiga only programming, then Aztec C is fine. If you're looking for portability or more modern code, then I'd suggest VBCC or GCC if you're up for it.
-
I would suggest vbcc that is easy to install, modern and light. It is also powerful and the best for cross-compilation between Amiga systems.
-
for C only, m68k only stuff, and if you can afford it: SAS/C
For C and C++ stuff, for portable code, or if you want it free: gcc
gcc is a bit tedious to set up as you need ixemul environment aswell, but then again you then get make, and other industry standard tools.
-
Sorry but I'm just replying to correct the grammar of the subject of this thread. Call me a pedant if you want, but I can't bear to see a misplaced apostrophe.
-
maybe he opened the thread thinking about Bruce Compiler's dine-out restaurant :)
-
motorollin wrote:
Sorry but I'm just replying to correct the grammar of the subject of this thread. Call me a pedant if you want, but I can't bear to see a misplaced apostrophe.
I'm glad you said something... That has been driving me nuts all morning...
-
>For C and C++ stuff, for portable code, or if you want it free: gcc
There is this conditional statement in C (or C++) that let's you do something like:
(VGAInfo.x>640)?(VGAInfo.SVGA=1):(VGAInfo.SVGA=0);
Is this standard C (works with any c compiler) and does it allow for multiple statements in the conditional?
I'm familiar with Borland C which has a lot of stuff which is nonstandard.
-
(VGAInfo.x>640)?(VGAInfo.SVGA=1):(VGAInfo.SVGA=0);
That is one weird code. Typically it's written:
VGAInfo.SVGA = VGAInfo.x > 640 ? 1 : 0;
See Wikipedia: ?: (http://en.wikipedia.org/wiki/%3F:)
-
You can do simpler
VGAInfo.SVGA = (VGAInfo.x > 640);
isnt it ?