Poster | Thread |
StantheAmigaMan
| |
C compiler for OS 4.1 Posted on 4-Mar-2017 21:54:25
| | [ #1 ] |
|
|
|
Member |
Joined: 29-Aug-2015 Posts: 75
From: Havre de Grace, MD | | |
|
| Hey gang,
Which compiler would work with the PPC OS? I heard or remember something about the latest Lattice/SAS system, for the 68k. How would that work? I mean, I know the functionality is identical to classic software but they're two different platforms.
_________________ You can get more done with a kind word and a 2x4 than you can with just a kind word |
|
Status: Offline |
|
|
pavlor
| |
Re: C compiler for OS 4.1 Posted on 4-Mar-2017 21:59:33
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 10-Jul-2005 Posts: 9583
From: Unknown | | |
|
| @StantheAmigaMan
Simply download SDK with needed files. CodeBench may help you with development. |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: C compiler for OS 4.1 Posted on 4-Mar-2017 22:17:02
| | [ #3 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12817
From: Norway | | |
|
| |
Status: Offline |
|
|
StantheAmigaMan
| |
Re: C compiler for OS 4.1 Posted on 4-Mar-2017 22:17:51
| | [ #4 ] |
|
|
|
Member |
Joined: 29-Aug-2015 Posts: 75
From: Havre de Grace, MD | | |
|
| @pavlor
Perfect. Thanks!!! _________________ You can get more done with a kind word and a 2x4 than you can with just a kind word |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: C compiler for OS 4.1 Posted on 4-Mar-2017 22:33:27
| | [ #5 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12817
From: Norway | | |
|
| @StantheAmigaMan
Quote:
I know the functionality is identical to classic software but they're two different platforms. |
Some define platform as the OS, Some define platform as some standard API like SDL, Some define platform as hardware. Some define platform as programming language, like JavaVm.
The OS side is slight different, AmigaOS 4.1 comes with two API's for etch library, there is the legacy "JMP table as used by the 680x0 programs.", and there is API for C program based on structs, and function pointers. To hide the difference you, can type –D__USE_INLINE__ as compiler option.
So it's basically the same. There are new things like. Amiga Input for joypads. Picasso96 has declared obsolete, and most of that API is now part of graphic library. (They have not removed legacy support for CyberGraphics or Picasso96 but you should not use it in new programs.)
Standard API's like SDL, Allegro and so that is basically designed for cross platform development should be the same on all operating systems. But this API's are not designed for making programs.
Hardware is also different.
AmigaONE's are PC's with PowerPC CPU chip. Amiga computers, have Paula, Denice, Agnus, and so chips, that don't exist in AmigaONE computers.
So you really should not write for hardware, you should write your software for the operating system.
And yes the PCI bus can be accessed from Exception library I believe on AmigaOS4.1, so you can write your own drivers if you like to, but that is what you should do, don't make your program access PCI bus directly that's just bad programming style.Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:37 PM. Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:35 PM. Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:34 PM.
_________________ http://lifeofliveforit.blogspot.no/ Facebook::LiveForIt Software for AmigaOS |
|
Status: Offline |
|
|
StantheAmigaMan
| |
Re: C compiler for OS 4.1 Posted on 4-Mar-2017 22:54:15
| | [ #6 ] |
|
|
|
Member |
Joined: 29-Aug-2015 Posts: 75
From: Havre de Grace, MD | | |
|
| @NutsAboutAmiga
Thank you Nuts :). I suppose I'm still stuck in the past with the Amiga development, writing for specific hardware items. Makes sense to write for the operating system.
But how will that work for device drivers? And I'd kill for a development tutorial like the classic Amigas had (hardware reference manuals, and Abacus books on the subjects, etc) _________________ You can get more done with a kind word and a 2x4 than you can with just a kind word |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: C compiler for OS 4.1 Posted on 5-Mar-2017 0:49:58
| | [ #7 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12817
From: Norway | | |
|
| |
Status: Offline |
|
|
Hypex
| |
Re: C compiler for OS 4.1 Posted on 5-Mar-2017 13:47:16
| | [ #8 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11204
From: Greensborough, Australia | | |
|
| @NutsAboutAmiga
Quote:
And yes the PCI bus can be accessed from Exception library I believe on AmigaOS4.1, so you can write your own drivers if you like to, but that is what you should do, don't make your program access PCI bus directly that's just bad programming style. |
Does it give you an exception to work on the PCI bus? Or does it catch you out? You can also get to PCI from Expansion. |
|
Status: Offline |
|
|