Welcome, Guest. Please login or register.

Author Topic: Free C Compilers for Amiga?  (Read 4186 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline nicholas

Re: Free C Compilers for Amiga?
« on: June 09, 2013, 08:27:39 PM »
If you want to cross compile from Linux:

http://cross.zerohero.se/os3.html

If you want to cross compile from Windows:

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

On real hardware use SAS/C  6.58 (get it from TOSEC on archive.org) or VBCC (You'll need the NDK from Amiga. com or Haage &Partner website).

If you want to use GCC on real hardware without committing suicide during the installation process then get Cubic IDE.  The demo version is fully functional.

http://www.softwareandcircuits.com/division/amiga/products/cubic/index.html
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Free C Compilers for Amiga?
« Reply #1 on: June 10, 2013, 01:48:10 AM »
Quote from: freqmax;737354
What compiler would parse anfs ?


I just check out the svn repo and the makefile requires SAS/C.  It shouldn't take much tweaking to compile with GCC or VBCC.

Quote
Anyway if I use GCC, will the binaries be alright? I have the feeling those executables re fine on multi-MHz and multi-MB machines with swap.. but not much else ;)


gcc -s -noixemul filename.c :)
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Free C Compilers for Amiga?
« Reply #2 on: June 10, 2013, 01:59:16 AM »
If you are after an NFS client then you can just grab the client binaries from this archive.

http://aminet.net/package/comm/net/AmiTCP-bin-30b2
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Free C Compilers for Amiga?
« Reply #3 on: June 10, 2013, 08:15:02 AM »
Quote from: freqmax;737362
Need the source to seriously tweak it..


The source is on that sourceforge page you posted.
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Free C Compilers for Amiga?
« Reply #4 on: June 10, 2013, 04:20:04 PM »
Quote
The most desired setup considering the answers here would be a unix system running DICE using SAS/C Makefiles to produce binaries which is then tested with UAE.


DICE and SAS are for the Amiga OS not UNIX.

If you want to compile binaries that are small with GCC then you can use the -nostdlib argument and write your own startup code.
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Free C Compilers for Amiga?
« Reply #5 on: June 10, 2013, 05:44:26 PM »
Quote from: mongo;737413
DICE is pretty portable and will compile and run on a UNIX system no problem.


Cool.

What's it like at handling code full of gnuisms?
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Free C Compilers for Amiga?
« Reply #6 on: June 10, 2013, 05:46:52 PM »
Quote from: freqmax;737401
My concern regarding GCC was how the binariers used would turn out. The system requirements of the compile process is a lesser concern because it's most likely will be done using cross compilation if possible. As that would be way faster. ;)

The problem with SAS/C is getting the bits.. :P
(I proberbly has it on a few floppies which I think I know where they are which can be read in a likely working amiga computer which perhaps would like to do some RS232 - now where is improbability drive when you need it! :D)

The most desired setup considering the answers here would be a unix system running DICE using SAS/C Makefiles to produce binaries which is then tested with UAE.

I have done SAS/C years ago with 1 MB A500 using a floppy drive.. *pain* but it made it possible to code C at home..! then I got a HDD.. tight memory but less pain. Had to quit editor for each compile to free upp memory.. no swap.


You could actually run the 68k SAS/C on UNIX with this.

http://lallafa.de/blog/2011/12/building-a-real-project-on-vamos-running-sas-c/
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Free C Compilers for Amiga?
« Reply #7 on: June 10, 2013, 07:35:54 PM »
Quote from: ChaosLord;737424
What is the definition of a Gnuism?

It isn't listed at the Urban Dictionary so the word must logically not exist :)


Lol

Google hits me with 35,000+ gnuism references.

gccism any better? ;)
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini