Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Twin on December 04, 2003, 04:09:57 AM

Title: Programming on the Amiga
Post by: Twin on December 04, 2003, 04:09:57 AM
Hi Everybody

When I was younger I used to program in AMOS on my Amiga 1200 (I also had an A2000 and a couple of A500's), however I had to go to windows in 2000.

Anyway, now I am a qualified PC programmer but I hate PC's I want to program on the Amiga again.

Ive read about compilers and the like, but my question (its probably a stupid one) is can I program using WinUAE on my PC or shall I buy an A1200 again (Ive been looking out for one but its hard to find a good one down under).

Thanks for any help you can give me.
Title: Re: Programming on the Amiga
Post by: iamaboringperson on December 04, 2003, 04:13:56 AM
UAE is perfectly fine for programming. :-)
Title: Re: Programming on the Amiga
Post by: that_punk_guy on December 04, 2003, 04:23:44 AM
Some people prefer UAE for development because you can change configurations and things to see how the program works with different ROMs, on different CPUs, how it copes with more or less memory, etc... lots of benefits.
Title: Re: Programming on the Amiga
Post by: Roj on December 04, 2003, 04:46:09 AM
Except for the fact that UAE doesn't include the functions of an MMU, which is essential for debugging...
Title: Re: Programming on the Amiga
Post by: that_punk_guy on December 04, 2003, 04:53:20 AM
Nor can you run PPC code...
Title: Re: Programming on the Amiga
Post by: iamaboringperson on December 04, 2003, 04:55:14 AM
Nor can you run MorphOS !
Title: Re: Programming on the Amiga
Post by: that_punk_guy on December 04, 2003, 05:00:48 AM
Nor can you run Solaris!

(Sorry, that's really silly. I'm going to bed now.)
Title: Re: Programming on the Amiga
Post by: iamaboringperson on December 04, 2003, 05:03:01 AM
zzzzzZZZZZzzzzzZZZzzzZzzZZ
Title: Re: Programming on the Amiga
Post by: that_punk_guy on December 04, 2003, 05:04:03 AM
...By the way 'hapiest' has two Ps :-)
Title: Re: Programming on the Amiga
Post by: iamaboringperson on December 04, 2003, 05:06:06 AM
:lol:

Thank's for that, I was thinking about that the other day ... I thought it was a bit strange! ;-)
Title: Re: Programming on the Amiga
Post by: Karlos on December 04, 2003, 05:12:37 AM
Not really, I've often considered Melbourne to be the hapiest (pron: Haypiest) place there is :-)

Oh yeah, coding....

WinUAE is ok for 680x0 target coding, as long as you don't mind not having an MMU when it comes to a spot of tricky debugging. Mind you, I think people reach for the debug way too early - 99% of all the errors in stuff I've written have been fixed using coffee and going carefully through my source...

Sorry, digressing again - probably because I'm coding right now (why else did you expect I was sat at my computer at 4:30am ?) :-)

Title: Re: Programming on the Amiga
Post by: Twin on December 04, 2003, 06:31:03 AM
Thanks alot, I think I will use WinUAE and keep my eye out for a good A1200 and then use both.

Once Ive got 680x0 coding down OK, I will look at moving onto PPC. As I will probably be purchasing an AmigaOne once OS4 comes out.
Title: Re: Programming on the Amiga
Post by: Dietmar on December 04, 2003, 07:40:59 AM
>Except for the fact that UAE doesn't include the functions of an MMU, which is essential for debugging...

No MMU is needed for debugging and Amiga debuggers run fine on UAE (like codeprobe from SAS/C). As to Enforcer, which is the only tool that comes to mind if the MMU is mentioned, WinUAE does have its own Enforcer called "winuaeenforcer". All other debugging tools like mungwall, sushi etc. run fine with UAE, too. I see absolutely no reason to not use WinUAE for development. I use it all the time. The good thing with UAE is that it's impossible to corrupt the file system (which runs on the Windows side): You can write to a log file on the hard disk even if you know that your program will crash during the process.
Title: Re: Programming on the Amiga
Post by: Gerbinist on December 04, 2003, 09:11:17 AM
Be carefull when programming on u.a.e. not to create "sluggish" code though. Otherwise you must add stuff like: runs on Amiga, but actually needs UAE to your readme.

Anyway, nice to hear that people start coding though ;-)
Title: Re: Programming on the Amiga
Post by: Karlos on December 04, 2003, 09:32:33 AM
A good way to do that, if your PC is pretty powerful, is to run your code in interpreted mode rather than JIT. That keeps the PC throttled back sufficiently to better judge code performance ;-)
Title: Re: Programming on the Amiga
Post by: Twin on December 06, 2003, 04:53:12 AM
Ive now got gcc installed and working on WinUAE, but it seems I need OS headers?

Where can I get these? At the moment I need clib/intuition_protos.h
Title: Re: Programming on the Amiga
Post by: sarkis on December 06, 2003, 07:09:14 AM
Hi,
  I use AF5.3 and program with Arexx...With JIT Amiga flies on my Gateway laptop..
www.cloanto.com (http://www.cloanto.com)
Sarkis :-P  :-P  :-P
Title: Re: Programming on the Amiga
Post by: crystall on December 06, 2003, 11:36:58 AM
Quote
Where can I get these? At the moment I need clib/intuition_protos.h


You need an AmigaOS Developer CD all the headers/libs you might need are there.
Title: Re: Programming on the Amiga
Post by: lempkee on December 06, 2003, 12:34:54 PM
going to use c or ansi c or c++ ??  , i recomend ANSI C and i recomend u to stay away from STORM C and use GCC ..

and i recomend you to get a developer cd (preferrably a later one).

tell us what you are planning on to do as we might guide you to direct places easier then :)

goodluck...
Title: Re: Programming on the Amiga
Post by: Kronos on December 06, 2003, 01:06:05 PM
ftp://ftp.uni-paderborn.de/ftp/aminet/pub/priv/completetrial061103.lzx

Is what I would advise (carefull it is a 86MB download).
See http://home.arcor.de/dtmrelrt/projects/golded/index.ht (http://home.arcor.de/dtmrelrt/projects/golded/index.ht)

for further info.

This will get you:
GoldED, the best editor there is. It is only a trial-version limited to
500 lines, but that should be enough to get you started.

A fully installed gcc-compiler for 68k and PPC (PuP/WOS/MorphOS), a complete
set of includes&autodocs, easy to use hothelp on all keyword (functions,typedefs,
structures), and and .....
Title: Re: Programming on the Amiga
Post by: pVC on December 06, 2003, 04:08:42 PM
Hmm.. NDK 3.9 used to be available for free on amiga.com, but can't see it anymore. Does anyone know what happened to it? It contained the OS includes so that you didn't have to buy dev cd necessary.
Title: Re: Programming on the Amiga
Post by: Twin on December 07, 2003, 01:56:00 AM
ftp://ftp.uni-paderborn.de/ftp/aminet/pub/priv/completetrial061103.lzx

Is what I would advise (carefull it is a 86MB download).
See http://home.arcor.de/dtmrelrt/projects/golded/index.ht

------------

Sorry, I can't get those links to work. Does that 86mb file include the OS headers, I have already got gcc working, I just need the headers.