Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Arkhan on June 06, 2009, 12:09:24 PM

Title: C programming
Post by: Arkhan on June 06, 2009, 12:09:24 PM
I recently refired up some Amiga excitement and have some time to kill.

Rather than kill it poorly, what in everyone whos done it's opinion, is the best C programming setup?

I know GCC is there, and can just do it the good ol' way, but are there any tools/software suites I should know about?

I saw a few mentioned on a few sites and dont want to sift thru em all if theyre junk!

I normally use GCC and Notepad++ on Windows, and Scintilla on Linux

:)  Any good game-making libraries? I have a Berzerk remake that wouldn't mind an Amiga port  :-D
Title: Re: C programming
Post by: Karlos on June 06, 2009, 12:13:28 PM
Well, if you are going to get into programming on the amiga, you might get the 2.1 dev cd. This happens to include StormC3 on there.

As a compiler it isn't in the same league as gcc (H&P recognised this and moved their compiler backend to gcc with v4), but it is very easy to get started with.

Then there's GoldEd, which with gcc makes a pretty good environment for development. You've also got CubicIDE.

If you want to develop compact highly amiga specific code, good old SASC is still well regarded.
Title: Re: C programming
Post by: bburtonpa on June 06, 2009, 12:59:38 PM
Quote from: Arkhan;509545
I recently refired up some Amiga excitement and have some time to kill.

I normally use GCC and Notepad++ on Windows, and Scintilla on Linux



Take a look at AmiDevCPP (http://amidevcpp.amiga-world.de/download.php?HR_LANG=english).  It is a cross-compliler front-end for GCC that is already configured to produce executables for Amiga/Aros/MorphOS targets.  If I am not mistaken, it can also generate code for Windows targets making it a whole lot nicer to use than notepad.
Title: Re: C programming
Post by: Karlos on June 06, 2009, 01:01:19 PM
If memory serves, the gcc backend in AmiDevCPP is also more up to date than existing m68K builds of gcc for the amiga.

Don't quote me on that, though.
Title: Re: C programming
Post by: GadgetMaster on June 06, 2009, 01:05:16 PM
Quote from: Karlos;509564
If memory serves, the gcc backend in AmiDevCPP is also more up to date than existing m68K builds of gcc for the amiga.


Quote
Don't quote me on that, though.

Oops too late. :laughing:
Title: Re: C programming
Post by: bburtonpa on June 06, 2009, 01:06:27 PM
You are correct.  I think the current version is up to 4.3 whereas the latest version on most Amiga specific download sites it 2.7 or 2.8...
Title: Re: C programming
Post by: Arkhan on June 06, 2009, 01:12:06 PM
Quote from: bburtonpa;509562
Take a look at AmiDevCPP (http://amidevcpp.amiga-world.de/download.php?HR_LANG=english).  It is a cross-compliler front-end for GCC that is already configured to produce executables for Amiga/Aros/MorphOS targets.  If I am not mistaken, it can also generate code for Windows targets making it a whole lot nicer to use than notepad.


Im not using notepad (notepad.exe)

Its notepad++!  It has syntax highlighting for tons of stuff.

Hmm, I already have and sometimes use DevC++ ... do I need the AmiDevCPP download?  Or is this same thing doable from the Dev C++ I have and didn't even realize it? Maybe thru a package download for it?
Title: Re: C programming
Post by: bburtonpa on June 06, 2009, 01:23:50 PM
I'm not sure if there is a package you can install to give it Amiga capabilities.  If you download "graceful bulldozer" it will install the latest version of DevC++, the Amiga/Aros/MorphOS cross-compilers, the necessary headers files, etc.
Title: Re: C programming
Post by: Arkhan on June 06, 2009, 01:31:43 PM
Quote from: bburtonpa;509576
I'm not sure if there is a package you can install to give it Amiga capabilities.  If you download "graceful bulldozer" it will install the latest version of DevC++, the Amiga/Aros/MorphOS cross-compilers, the necessary headers files, etc.


Yeah I skimmed the package manager for devC++ and don't see any mention of Amiga.

must be a specialized setup built around the source for DevC++ or something.

Either way, good stuff!
Title: Re: C programming
Post by: ferrellsl on June 06, 2009, 01:42:19 PM
For AmiDevCpp see this link:  

http://amidevcpp.amiga-world.de/aboutamidevcpp.php?HR_LANG=english
Title: Re: C programming
Post by: Arkhan on June 06, 2009, 01:46:48 PM
Quote from: ferrellsl;509579
For AmiDevCpp see this link:  

http://amidevcpp.amiga-world.de/aboutamidevcpp.php?HR_LANG=english


yeah I saw that, thats why i was wondering if the regular devCPP supported any of it... they both look and work the same :)
Title: Re: C programming
Post by: x303 on June 06, 2009, 03:02:02 PM
Quote from: bburtonpa;509569
You are correct.  I think the current version is up to 4.3 whereas the latest version on most Amiga specific download sites it 2.7 or 2.8...

No, the 'lastest' a68k version is 3.4.0.

x303 :D :D :D
Title: Re: C programming
Post by: Karlos on June 06, 2009, 03:30:47 PM
Quote from: Arkhan;509580
yeah I saw that, thats why i was wondering if the regular devCPP supported any of it... they both look and work the same :)


The IDE is the same, but vanilla DevCPP is primarily for windows development with gcc. AmiDevCPP provides an m68K/PPC cross compiler back end and various template configurations for the IDE to build targets for AmigaOS3/4/MOS/AROS etc.

If you only install AmiDevCPP, you can still build windows applications with it, it just isn't the prime focus of the package.
Title: Re: C programming
Post by: Arkhan on June 07, 2009, 01:07:16 AM
I like it so far, but I want to do some stuff w/i Amikit .  

What is Lattice C
Title: Re: C programming
Post by: slayer on June 07, 2009, 03:32:23 AM
The last version of SAS Lattice C was 6.58, I complied a HD installation of this environment a few years back... It involved installing 6.50/6.51 then applying 4 more patches from physical floppies...

The archive has been circulating in various circles ever since then... lol and not in it's original archive form either which was lzx... I uploaded it to EAB Zone...

you can always identify my archive because I cut and paste the needed user startup assignments at the end of the READ.ME file in the root directory

There was an additional experimental ppc addon but my memory fails me in regards of what executables were actually ppc... I have the release but I wouldn't know where to look...
Title: Re: C programming
Post by: Arkhan on June 09, 2009, 04:53:13 PM
I grabbed the Amiga development environment from.... http://amiga.sourceforge.net/amigadevhelp/  

I got the one for a real Amiga.  Maybe I should've gotten the WinUAE one?  (Im using AmiKit)

I had to untar it in Windows! (how do I untar on an Amiga!? >_O)

Since I am an Amiga n00b I don't exactly know how I should set this up, and haven't found any readme/install notes....

any of you familiar with it?   I think once it's setup it will be pretty good!
Title: Re: C programming
Post by: asymetrix on June 09, 2009, 06:14:12 PM
if you are using Amikit/ via Winuae emulation on a PC then use the uae version :

http://www.innoidea.hu/subsites/amiga/developer/FILES/HardFiles/gcc111.zip

unzip, add as harddisk image move it to the top of the list to make it bootable first, restart.

I use this myself, it is old, I hope someone could make an uptodate version.
Title: Re: C programming
Post by: meega on June 09, 2009, 06:20:08 PM
Quote from: Arkhan;510206
I had to untar it in Windows! (how do I untar on an Amiga!? >_O)


Using tar ?

http://aminet.net/search?name=tar&path[]=util/arc&arch[]=m68k-amigaos
Title: Re: C programming
Post by: Arkhan on June 09, 2009, 06:22:12 PM
nice, and nice again!

thanks a ton!

eventually Ill get use to not relying on what I know from Windows.

EDIT: The only question is, if I boot that HD environment, I am no longer in the regular AmiKit setup

thats how it is supposed to be?

and, cant I install GCC within AmiKit so I can just call it from their command line?