English Amiga Board Amiga Lore



Go Back   English Amiga Board > Coders > Coders. Language

 
 
Thread Tools
Old 22 August 2010, 10:38   #1
Rixa
Registered User
 
Join Date: Sep 2007
Location: Tampere / Finland
Posts: 118
GCC and ixemul.library

What tools are current for developing or porting applications for classic Amigas using gcc and ixemul.library? Is there something to replace the Geek Gadgets compilation of old?

The latest GG snapshot at back2roots.org is from 1998, but I notice that the latest ixemul.library at amiga.sf.net is from May this year and still expects a GG: assign, so GG isn't completely dead and forgotten. Some other components may also have updated ports in places, but I don't know how well they work together and hunting them down individually would be a chore.
Rixa is offline  
AdSense AdSense  
Advertisement:
Old 23 August 2010, 02:31   #2
matthey
Registered User
 
Join Date: Jan 2010
Location: Kansas
Posts: 287
Quote:
Originally Posted by Rixa View Post
What tools are current for developing or porting applications for classic Amigas using gcc and ixemul.library? Is there something to replace the Geek Gadgets compilation of old?
GCC v2.95.3 is still used today and probably generates the best code of any Amiga compiler ever. Newer versions still support 68k but generate any where from fair to horrible code. A lot of UAE Amiga people use the newer versions of GCC because of tools that need the new versions. ixemul.library is best used with the -noixemul GCC option. Use Libnix if possible with GCC. No other compiler that I know of supports ixemul. The only compiler actively supported is vbcc...

http://sun.hasenbraten.de/vbcc/

It has an ixemul/libnix POSIX library that's been updated fairly recently. If you need anything fixed send Frank Wille (Vasm/PhxAss author) an email ...

http://aminet.net/dev/c/vbcc_PosixLib.lha

Vbcc keeps getting better. It's very usable and easy to get started unlike the GCC mega installation. Many people still use SASC as well.

VBCC
Good: easy install, portable, supported, small, above average code
Bad: slow, missing some tools

GCC 2.95.3
Good: good code, portable, fairly fast
Bad: install hell, no support, not very compatible with newer GCC

GCC 3.4.0
Good: more modern GCC support, portable, average code
Bad: install hell, no support, worse code than 2.95.3

SAS/C (Lattice C)
Good: fast, lots of tools (good debugger), polished, above average code
Bad: not portable, no support, not easy to use, old
matthey is offline  
Old 23 August 2010, 09:56   #3
phx
Registered User

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 414
Quote:
Originally Posted by matthey View Post
ixemul.library is best used with the -noixemul GCC option.
Yes, indeed!
In fact -noixemul prevents using of ixemul.library, which is recommended when you can afford it.

With ixemul.library your programs become an alien on any AmigaOS system. It will behave like a Unix program and uses all sorts of strange assignments for simulate such a system. When possible, you should invest some extra effort to make a real Amiga port.

When you absolutely need ixemul, because of the high complexity of the port, make sure not to use any hacks after the last official ixemul V48.


Quote:
Use Libnix if possible with GCC. No other compiler that I know of supports ixemul.
Some years ago vbcc supported ixemul.library. There was a special config file, startup code and stubs-library for that. After developing PosixLib, and moving my development system from my A3000 to my Pegasos, I seem to have lost the source. Maybe I should check some old hard disks before it is lost forever...

Quote:
VBCC
Good: easy install, portable, supported, small, above average code
Bad: slow, missing some tools

GCC 2.95.3
Good: good code, portable, fairly fast
Bad: install hell, no support, not very compatible with newer GCC

GCC 3.4.0
Good: more modern GCC support, portable, average code
Bad: install hell, no support, worse code than 2.95.3

SAS/C (Lattice C)
Good: fast, lots of tools (good debugger), polished, above average code
Bad: not portable, no support, not easy to use, old
I might add that older compilers like GCC 2 and SAS/C have no C99 support at all, SAS/C does not even support 64-bit arithmetics. This might be problematic when porting modern sources. Apart from that I still think that SAS/C generates the best 68k code.
phx is offline  
Old 24 August 2010, 18:24   #4
Rixa
Registered User
 
Join Date: Sep 2007
Location: Tampere / Finland
Posts: 118
Thank you both for your insights.
Rixa is offline  
Old 26 August 2010, 08:18   #5
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 2,828
Hiya,

I'm currently coding a port using gcc v2.95.3 and if I use Libnix it crashes so I have to use ixemul.library, haven't found out why yet

Maybe I should give vbcc a try instead....
NovaCoder is online now  
Old 14 November 2011, 18:24   #6
tygre
Returning fan!

tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 164
Dear all,

I am trying to compile thttpd (from Aminet) for my Amiga 1200 on Cygwin, I am facing a compatibility problem between "sys/timer.h" that define "struct timezone {...}" as and the expected "time_t timezone" by thttpd. Could anyone help me or point me towards useful ressources? I have been looking on the Web and found several pages but I am a newbie and no page really helped me.

Best!

PS. I am on Windows 7, using Cywin, gcc 3.4.4, installed includes and all found at http://www.zerohero.se/cross/os3.html
tygre is offline  
Old 14 November 2011, 23:19   #7
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 2,828
Hiya,

Have you tried AmiDevCPP yet? It's a pre-configured setup so it's a lot easier to do stuff.
NovaCoder is online now  
Old 15 November 2011, 10:11   #8
Minuous
Coder/webmaster/gamer
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 1,232
Quote:
VBCC
Good: easy install, portable, supported, small, above average code
Bad: slow, missing some tools

GCC 2.95.3
Good: good code, portable, fairly fast
Bad: install hell, no support, not very compatible with newer GCC

GCC 3.4.0
Good: more modern GCC support, portable, average code
Bad: install hell, no support, worse code than 2.95.3

SAS/C (Lattice C)
Good: fast, lots of tools (good debugger), polished, above average code
Bad: not portable, no support, not easy to use, old
I'm surprised you left out StormC. And also I don't know why you would think SAS/C is hard to use, because it is very straightforward. Whereas trying to get stuff to compile on GCC tends to be nothing but headaches.
Minuous is offline  
Old 15 November 2011, 17:18   #9
tygre
Returning fan!

tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 164
@NovaCoder and Minuous

No, haven't tried yet because I need Cygwin to work and the install warns me that installing AmiDevC++ will change/corrupt (it is unclear to me ) my installed Cygwin... and, yes, using GCC gives a headache but it's cool

I'll keep you posted on my findings!
Cheers!
tygre is offline  
Old 22 November 2011, 04:03   #10
tygre
Returning fan!

tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 164
Hi all!

I managed to compile PHP v4.2.3 on Cywin for m68k-amigaos :-) I am putting together a Web page to detail all the steps but, before putting that one on-line and uploading the compiled version into Aminet, I want to make sure that all the PHP tests run...

Cheers!
tygre is offline  
Old 22 November 2011, 05:06   #11
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 2,828
Cool well done.

Something I tried to setup (and failed!) was to use C++ Eclipse IDE on Windows using mingw.

If someone could get that working it would be a great way to write 68k for classics using gcc.

This thread should really be moved to the coding section BTW, way too boring for most people to read
NovaCoder is online now  
Old 22 November 2011, 17:13   #12
prowler
Global Moderator
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 9,510
Quote:
Originally Posted by NovaCoder View Post
This thread should really be moved to the coding section BTW, way too boring for most people to read
I've moved the thread to the Coders.Language forum as suggested.

@Photon/CFOU!: If this is not suitable, please feel free to move it to another sub-forum.
prowler is offline  
Old 23 November 2011, 03:31   #13
tygre
Returning fan!

tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 164
Quote:
Originally Posted by NovaCoder View Post
Cool well done.

Something I tried to setup (and failed!) was to use C++ Eclipse IDE on Windows using mingw.

If someone could get that working it would be a great way to write 68k for classics using gcc.
I haven't try yet but I will eventually! I like Eclipse also and use it for, mostly, developing in Java... But I did not want to try before I got something working with the command line... Did you check these two pages out, could they help?

- Eclipse with Cygwin GCC
- Eclipse CDT with Cygwin GCC: automatic discovery of symbols and
paths


Quote:
Originally Posted by NovaCoder View Post
This thread should really be moved to the coding section BTW, way too boring for most people to read
Thanks Prowler!

Cheers!
tygre is offline  
Old 23 November 2011, 22:52   #14
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 2,828
Yep I tried those pages but still failed to get it working (lack of brain power).

NovaCoder is online now  
Old 07 January 2012, 15:29   #15
tygre
Returning fan!

tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 164
Same here!

Still cannot figure out how to tell Eclipse to use m68k-amigaos-gcc... but will keep trying!
tygre is offline  
Old 06 June 2012, 06:33   #16
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 2,828
Let's do a thread update shall we -> Eclispse Amiga style

NovaCoder is online now  
Old 06 June 2012, 22:10   #17
tygre
Returning fan!

tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 164
Hi NovaCoder!

Great catch! Indeed it works on a simple code, let's try now on complicated stuff... One thing though that I (currently) do not understand and how does Eclipse magically generate the makefiles...

Cheers!
Tygre
tygre is offline  
AdSense AdSense  
Advertisement:
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Status of IXEmul tygre Coders. General 4 24 May 2012 22:57
Does ClassicWB 3.9 installed ixemul.library? NovaCoder project.ClassicWB 5 12 October 2011 13:15
Trying to use a library in StromC V4 (default gcc compiler) NovaCoder Coders. General 3 09 September 2009 01:38
Making a shared library from a gcc .a library JoJo Coders. General 1 10 March 2003 19:06

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:46.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Page generated in 0.17489 seconds with 11 queries