Welcome, Guest. Please login or register.

Author Topic: Compiler's  (Read 2514 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline XanaaTopic starter

  • Jr. Member
  • **
  • Join Date: Feb 2008
  • Posts: 89
    • Show only replies by Xanaa
Compiler's
« 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          :-)
 

Offline AeroMan

  • Sr. Member
  • ****
  • Join Date: Oct 2007
  • Posts: 342
    • Show only replies by AeroMan
Re: Compiler's
« Reply #1 on: June 30, 2008, 03:47:42 AM »
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 !
 

Offline Sidewinder

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 241
    • Show only replies by Sidewinder
    • http://www.liquido2.com
Re: Compiler's
« Reply #2 on: June 30, 2008, 04:41:36 AM »
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.
Sidewinder
 

Offline corto

  • Newbie
  • *
  • Join Date: May 2007
  • Posts: 14
    • Show only replies by corto
    • http://amigadev.free.fr
Re: Compiler's
« Reply #3 on: June 30, 2008, 06:43:57 AM »
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.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Compiler's
« Reply #4 on: June 30, 2008, 07:59:40 AM »
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.
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Compilers
« Reply #5 on: June 30, 2008, 09:47:51 AM »
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.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline countzero

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 1938
    • Show only replies by countzero
    • http://blog.coze.org
Re: Compiler's
« Reply #6 on: June 30, 2008, 10:13:03 AM »
maybe he opened the thread thinking about Bruce Compiler's dine-out restaurant :)
I believe in mt. Fuji
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Compilers
« Reply #7 on: June 30, 2008, 10:31:59 AM »
Quote

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...

Offline amigaksi

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 827
    • Show only replies by amigaksi
    • http://www.krishnasoft.com
Re: Compiler's
« Reply #8 on: June 30, 2008, 12:08:55 PM »
>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.
--------
Use PC peripherals with your amiga: http://www.mpdos.com
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Compiler's
« Reply #9 on: June 30, 2008, 03:16:15 PM »
Quote
Code: [Select]
(VGAInfo.x>640)?(VGAInfo.SVGA=1):(VGAInfo.SVGA=0);

That is one weird code. Typically it's written:
Code: [Select]
VGAInfo.SVGA = VGAInfo.x > 640 ? 1 : 0;
See Wikipedia: ?:
 

Offline woof

  • Jr. Member
  • **
  • Join Date: Feb 2003
  • Posts: 94
    • Show only replies by woof
    • http://uae.is.free.fr
Re: Compiler's
« Reply #10 on: June 30, 2008, 05:40:00 PM »
You can do simpler
VGAInfo.SVGA = (VGAInfo.x > 640);
isnt it ?