Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: on January 08, 2003, 12:19:47 PM

Title: OS4 Compiler
Post by: on January 08, 2003, 12:19:47 PM
I am sure this has been asked/answered somewhere else before but what is the official compiler to use with OS4 applications?

I have currently got the latest version of SAS/C and GCC, where the latter, if my memory is not failing me, (in modified form?) is the compiler used by the developers of OS4?
Title: Re: OS4 Compiler
Post by: SlimJim on January 08, 2003, 12:24:50 PM
Yes, I think Hyperion is using a slightly modified version of
gcc. Due to some technical considerations of theirs, it's not
based on the absolutely latest version of gcc though, if I
remember correctly.
.
SlimJim
Title: Re: OS4 Compiler
Post by: on January 08, 2003, 12:28:32 PM
So should I go with GCC for maximum portability?
I have been working with an Internet-application for some time now with SAS/C and for this I want to put minimum effort into adding support for OS4.
Title: Re: OS4 Compiler
Post by: tonyw on January 08, 2003, 12:42:01 PM
I think it's gcc. But write to ben@hyperion and ask him. He'll probably be happy to tell you.

tony
Title: Re: OS4 Compiler
Post by: Rogue on January 10, 2003, 10:17:38 AM
We are using both gcc 2.95.3 and gcc 3.2. gcc 3.2 only exists as a cross compiler on Linux ATM, though. If you're using gcc, chances are that your code will compile and run out-of-the-box on OS 4 (minus new features of course).
Title: Re: OS4 Compiler
Post by: ksk on January 10, 2003, 10:37:54 AM
@Rogue

It would be a good thing to include at least some simple developer tools with the OS.
(like AmigaBasic with the AmigaOS1.x)
Title: Re: OS4 Compiler
Post by: Warface on January 10, 2003, 10:41:52 AM
The idea is good, the example is terrific :-) AmigaBasic was the most limited Amiga application I have ever seen... File open, where you had to type in the entire path and filename by hand.... A nightmare. Good that it's history. So much for Microsoft software on Amiga.
Title: Re: OS4 Compiler
Post by: Hattig on January 10, 2003, 10:46:59 AM
I believe that Python will be included at the very least.

If there is space on the CD (DVD? :) ) I don't see the harm in including a directory with the OS4 ports of whatever various development tools are used however.

Dammit, why do I keep on getting logged out at random times... I should have a 1 year cookie, but it has never worked for me. :(  :-x
Title: Re: OS4 Compiler
Post by: Orgin on January 10, 2003, 11:02:43 AM
@Rogue

Lucky me for having linux installed nearby then :)

/Björn
Title: Re: OS4 Compiler
Post by: Orgin on January 10, 2003, 12:11:42 PM
@Rogue

Btw, will any of those GCC compilers come together with the OS4 distribution at the time of release? (or available though download?)

/Björn
Title: Re: OS4 Compiler
Post by: bloodline on January 10, 2003, 12:31:47 PM
GCC is the best to use.
As you should also then be able to port to AROS with a minimum of effort. :-D
Title: Re: OS4 Compiler
Post by: Skyraker on January 10, 2003, 01:40:39 PM
Does anyone know if Blitz will return, or have they abandoned us completely?
Title: Re: OS4 Compiler
Post by: Rogue on January 10, 2003, 02:11:28 PM
We're not yet sure on how to handle the developer material side of things. At the very least the stuff will be available for download, and probably also in the form of a new developer CD at an absolute minimum price (basically just the media). It might be on the final OS 4 CD, but that isn't decided yet, and will probably be something for the marketing department to decide.
Title: Re: OS4 Compiler
Post by: Orgin on January 10, 2003, 02:25:18 PM
@Rogue

Okie, thanks for the answer.

/Björn
Title: Re: OS4 Compiler
Post by: Crumb on January 10, 2003, 04:48:33 PM
are you going to change the "#includes" system? I'm a newbie and I have lots of problems due to the f***ing includes, stubs, protos, pragmas, inlines, static libs etc... It's quite frustrating for me :-(
are you going to unify the include system so every compiler will use the same static libs and includes?
It doesn't matter if I try StormC or gcc, using fd2pragma is not enough for most of third party includes/libs, for example with amarqueze I can compile using C but if I switch the compiler to C++ it gives me tons of errors in the includes, with P96 I can compile for 68k but if I switch to ppc the same happens :-(
If fd2pragma exists why can't it be integrated in current compilers so the programmer don't have to fight against all this ####? why can't we have a unified include system?
Ok, I'm not an experienced programmer, but I think that many people doesn't code for AmigaOS due to this, If I try to code for AmigaOS I end up frustrated because I know how to do most of things, the code is right, but everything fails due to the damn includes.
Ok, so we have fd2inline also... for me it's something like fd2pragma: millions of options.
AFAIK People don't have these problems with different assemblers, so why should this happen with C/C++?
Sorry for my complains, but this is the only problem I have with AmigaOS. When the include works I haven't problems. I made p96 work and I've got no problems apart from not being able to compile for ppc :-(
And we also have gcc, how can I compile for MorphOS/Amithlon/AmigaOS using the same gcc installation?
pfff sorry I feel quite frustrated today :-(
Title: Re: OS4 Compiler
Post by: on January 12, 2003, 06:41:10 PM
Quote
We are using both gcc 2.95.3 and gcc 3.2. gcc 3.2 only exists as a cross compiler on Linux ATM, though. If you're using gcc, chances are that your code will compile and run out-of-the-box on OS 4 (minus new features of course).
Ok, sounds great, thanks for the info.
Title: Re: OS4 Compiler
Post by: on January 12, 2003, 06:45:58 PM
Quote
Does anyone know if Blitz will return, or have they abandoned us completely?
All I know is that it currently is win-only. Blitz3D seems to be quite popular and is based around DirectX ((or maybe OpenGL?) if I am not totally out in the blue?) so it looks kinda dark. But who knows...
Title: Re: OS4 Compiler
Post by: trgse on January 12, 2003, 08:42:25 PM
Blitz is still available on the amiga and still developed
for the amiga

it's called AmiBlitz now and there is a mailing-list
and a homepage for it at

http://blitz2000.gazchap.com/

btw. PC-Blitz 3D support isn't very good.
a mini-gl/warp3d blitz lib for amiga-blitz would probably
blow it out of the water.
Title: Re: OS4 Compiler
Post by: Doobrey on January 12, 2003, 08:57:49 PM
Quote

trgse wrote:
Blitz is still available on the amiga and still developed
for the amiga...it's called AmiBlitz now


Yup, and a great job Bernd Roesch is doing on it too..regular updates and bugfixes.

 Unfortunately, a while back Bernd said he had no plans to buy an AmigaOne or PegasOS :-( so I guess it`ll stay 68k only.

Maybe Amiga Inc could donate a machine to Bernd and give OS4 a boost in the many small apps people have created in Blitz over the years..
Title: Re: OS4 Compiler
Post by: on January 12, 2003, 11:25:51 PM
Quote
Unfortunately, a while back Bernd said he had no plans to buy an AmigaOne or PegasOS so I guess it`ll stay 68k only.
I have not followed on the progress of OS4/A1 but what was said about 68k emulation in that topic, if anything?
Quote
Maybe Amiga Inc could donate a machine to Bernd and give OS4 a boost in the many small apps people have created in Blitz over the years.
Donate when they can't even ship some t-shirts? ;-)