Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
21 crawler(s) on-line.
 106 guest(s) on-line.
 1 member(s) on-line.


 amigakit

You are an anonymous user.
Register Now!
 amigakit:  1 min ago
 DiscreetFX:  15 mins ago
 Dragster:  17 mins ago
 Karlos:  24 mins ago
 bhabbott:  1 hr ago
 amig_os:  1 hr 20 mins ago
 OneTimer1:  1 hr 33 mins ago
 mbrantley:  1 hr 36 mins ago
 michalsc:  1 hr 46 mins ago
 zipper:  1 hr 51 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  C compiler for OS 4.1
Register To Post

PosterThread
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
Profile     Report this post  
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
Profile     Report this post  
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

@StantheAmigaMan

vbcc if you wont do any 680x0 c development, it also contains a gritty good assembler for 680x0.

For the newest vasm compiler you might wont to download hippo-player form git hub, it contains all you need to compile assembler.

https://github.com/khval/HippoPlayer/tree/master/c

For C development you need to download NDK3.9.

http://www.haage-partner.de/download/AmigaOS/NDK39.lha


For AmigaOS 4.1 C/C++ development you should install the OS4.1 SDK from Hyperion.

http://hyperion-entertainment.biz/index.php/downloads?view=files&parent=30

In addition you can install CodeBench, or any text editor will do, I use Notepad that comes with the OS.

Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:21 PM.
Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:20 PM.
Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:20 PM.
Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:19 PM.
Last edited by NutsAboutAmiga on 04-Mar-2017 at 10:18 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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

@StantheAmigaMan

Well the autodocs are included with OS4.1 SDK, there is example folder you, so you can find small code snipes, and for more for some of the documents on how to code has been moved over to Amiga wiki page.

http://wiki.amigaos.net/wiki/Main_Page

Last edited by NutsAboutAmiga on 05-Mar-2017 at 12:50 AM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
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
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle