English Amiga Board Amiga Lore


Go Back   English Amiga Board > Coders > Coders. Language

 
 
Thread Tools
Old 14 January 2017, 10:01   #21
meynaf
68k wisdom
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon (France)
Age: 44
Posts: 2,362
Quote:
Originally Posted by matthey View Post
The old version of Storm C was buggy. The new version is based on an older version of GCC. The advantage of Storm C is an IDE but this also requires more resources. The disadvantage is an old (but good) version of GCC which is no longer supported. There is no best compiler for the 68k. With Amiga compilers, it is pick your poison and hope it is one you can tolerate.
There is Hisoft C++ which is based on MaxonCpp too. Relative good IDE, compiles fast - but a few bugs here and there (and i don't even remember where i got it ).

GCC is indeed the best compiler for the code it produces, but it's slow as hell, takes too much resources and not straightforward to setup.
meynaf is offline  
AdSense AdSense  
Old 15 January 2017, 18:37   #22
snowfire
Registered User
 
Join Date: Jan 2017
Location: Helsinki / Finland
Posts: 13
After a few decades I'm also looking at getting back in to Amiga-coding ( m68k, OS 1.2 - 3.9 ) . Having examined the options it seems to me like Vbcc and Devpac would be a good choice. ( I want to code hardware directly, demos/games and such ). And cross-compiling option from windows/linux/osx is probably nice to have ( although I have already set up a nice A4000 setup in WinUAE 3.4.0, which is awesome(!) but sadly seems to crash quite often in my Windows 10 ).

Also, I would like to code my program logic in Lua, which I think is awesome little language.
I wonder has anyone ever managed to compile Lua with Vbcc?
snowfire is offline  
Old 15 January 2017, 19:02   #23
Locutus
Registered User

 
Join Date: Jul 2014
Location: Finland
Posts: 712
Yes, Lua shouldn't be a problem.
Locutus is offline  
Old 15 January 2017, 19:18   #24
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 41
Posts: 2,960
Quote:
Originally Posted by snowfire View Post
I wonder has anyone ever managed to compile Lua with Vbcc?
Lua 5.3 can probably be compiled by -any- full C89 compiler. I've compiled it with SAS/C 6.58, so VBCC shouldn't be any problem at all.
Thorham is offline  
Old 30 May 2017, 17:54   #25
guy lateur
Registered User

guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 44
Posts: 216
First post on these forums, so sorry it had to be a slight necro, but I was asking myself the exact same question as the OP, so here I am.

So it seems to be down between vbcc and sas/c. I'll definitely be checking out vbcc, but how can I (legally) obtain the latest version of sas/c? Can't seem to find it anywhere..
guy lateur is offline  
Old 30 May 2017, 19:12   #26
plasmab
Registered User

plasmab's Avatar
 
Join Date: Sep 2016
Location: Glasgow
Posts: 1,178
You can't buy SAS/C for the Amiga from SAS anymore. You'd need to buy a second hand copy on one of the popular forums or auction sites


Sent from my iPhone using Tapatalk
plasmab is offline  
Old 30 May 2017, 19:44   #27
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 882
have you checked the gcc6 amiga-m68k target in this thread? isnt it an option?
wawa is offline  
Old 30 May 2017, 20:32   #28
plasmab
Registered User

plasmab's Avatar
 
Join Date: Sep 2016
Location: Glasgow
Posts: 1,178
Gcc6 needs a lot of RAM to run on real hardware


Sent from my iPhone using Tapatalk
plasmab is offline  
Old 30 May 2017, 20:39   #29
guy lateur
Registered User

guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 44
Posts: 216
Quote:
Originally Posted by plasmab View Post
You can't buy SAS/C for the Amiga from SAS anymore. You'd need to buy a second hand copy on one of the popular forums or auction sites
Ok, that's what I thought, thanks for clarifying!

I've considered all kinds of stuff, including StormC, since I happen to have the Developer CD 2.1. I've read a lot of good recommendations for especially SAS/C, and also vbcc. Just trying to narrow it down..
guy lateur is offline  
Old 30 May 2017, 20:55   #30
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 452
Quote:
Originally Posted by plasmab View Post
Gcc6 needs a lot of RAM to run on real hardware
Has anyone built GCC6 for real hardware? I was tempted but never tried.
Cross compiling these days should not be a problem. It builds under Linux and IIRC CygWin.
nogginthenog is offline  
Old 30 May 2017, 20:58   #31
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 882
Quote:
Originally Posted by plasmab View Post
Gcc6 needs a lot of RAM to run on real hardware
thats right. i didnt know running on amiga is a requirement.
wawa is offline  
Old 30 May 2017, 21:02   #32
plasmab
Registered User

plasmab's Avatar
 
Join Date: Sep 2016
Location: Glasgow
Posts: 1,178
Quote:
Originally Posted by wawa View Post
thats right. i didnt know running on amiga is a requirement.


Possibly isn't but SAS/C and VBCC both run on real hardware


Sent from my iPhone using Tapatalk
plasmab is offline  
Old 30 May 2017, 21:02   #33
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by guy lateur View Post
I've considered all kinds of stuff, including StormC, since I happen to have the Developer CD 2.1. I've read a lot of good recommendations for especially SAS/C, and also vbcc. Just trying to narrow it down..
What hardware will you be using to compile? SAS/C is best for a low spec Amiga and is not difficult to obtain. Vbcc is easy to install and try but anything but small projects will need a beefier Amiga. It can be setup to cross compile from a faster and more modern computer. StormC v4 is ok if you like IDEs (also Cubic IDE) and have the resources for it. It uses an old but good version of GCC (not true of v3). GCC is a pain to install on a real Amiga but the older versions (2.95.3 and 3.4.0) work fine with older code. Newer versions may be too heavy and may have problems on a real Amiga but GCC is one of the best cross compilers available.

Quote:
Originally Posted by nogginthenog View Post
Has anyone built GCC6 for real hardware? I was tempted but never tried.
Cross compiling these days should not be a problem. It builds under Linux and IIRC CygWin.
It would be awesome if bebbo could make a new GCC 6 install for real Amigas but that is probably a ways away and it would likely be too heavy for most hardware.
matthey is offline  
Old 30 May 2017, 21:03   #34
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 882
Quote:
Originally Posted by nogginthenog View Post
Has anyone built GCC6 for real hardware? I was tempted but never tried.
Cross compiling these days should not be a problem. It builds under Linux and IIRC CygWin.
at least gcc-4.6.4 builds with the development tools when you build aros68k. i compiled a helloworld with it under uae to confirm its working. i guess aros version og gcc-6.3.0, binutils and the rest works too on 68k. the question is however if it is effectively usable.

one day, when bebbos patches are incorporated into aros backend i can tell more.
wawa is offline  
Old 30 May 2017, 21:08   #35
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 882
Quote:
Originally Posted by plasmab View Post
Possibly isn't but SAS/C and VBCC both run on real hardware


Sent from my iPhone using Tapatalk
the problem is sas/c availability and conformity with current standards and sources. also what about c++ eventually?

vbcc is probably a better choice, especially its development might now probably boost as its being sponsored by ic. though the problem is that many open sources may expect some set of features available with gcc, binutils and other similar packages that may not be available with vbcc.
wawa is offline  
Old 30 May 2017, 21:36   #36
guy lateur
Registered User

guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 44
Posts: 216
Quote:
Originally Posted by matthey View Post
What hardware will you be using to compile? SAS/C is best for a low spec Amiga and is not difficult to obtain. Vbcc is easy to install and try but anything but small projects will need a beefier Amiga. It can be setup to cross compile from a faster and more modern computer. StormC v4 is ok if you like IDEs (also Cubic IDE) and have the resources for it. It uses an old but good version of GCC (not true of v3). GCC is a pain to install on a real Amiga but the older versions (2.95.3 and 3.4.0) work fine with older code. Newer versions may be too heavy and may have problems on a real Amiga but GCC is one of the best cross compilers available.
I'll be compiling on an A1200, 2/16 Mb, accelerated 68EC30 @ 50 MHz. Cross compiling from my PC is an option, but I'd like to consider doing it on the amiga first.

I think the CD provides StormC v3, so I'll probably stay away from that, then..
guy lateur is offline  
Old 30 May 2017, 22:14   #37
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by wawa View Post
the problem is sas/c availability and conformity with current standards and sources. also what about c++ eventually?
Yea, SAS/C doesn't support C99 but has some basic support for C++. Vbcc has pretty good C99 support but has no C++ support. Neither can completely replace GCC for guys that port software because of this.

Quote:
Originally Posted by wawa View Post
vbcc is probably a better choice, especially its development might now probably boost as its being sponsored by ic. though the problem is that many open sources may expect some set of features available with gcc, binutils and other similar packages that may not be available with vbcc.
Some of the GCC binutils work with vbcc and are almost necessary like make. Vbcc would really be going prime time if it started developing and installing more of its own bin utils. Vbcc is currently developed and supported for the Amiga which is an often overlooked advantage. I believe it is the only C compiler with active "official" support for the Amiga (68k and PPC).

Quote:
Originally Posted by guy lateur View Post
I'll be compiling on an A1200, 2/16 Mb, accelerated 68EC30 @ 50 MHz. Cross compiling from my PC is an option, but I'd like to consider doing it on the amiga first.
That should be enough for learning and small projects with vbcc. I assume a descent amount of storage space with that too. You may want SAS/C installed also though.

Quote:
Originally Posted by guy lateur View Post
I think the CD provides StormC v3, so I'll probably stay away from that, then..
StormC v3 is still usable but has a few known bugs which will never be fixed.
matthey is offline  
Old 30 May 2017, 22:28   #38
guy lateur
Registered User

guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 44
Posts: 216
Quote:
Originally Posted by matthey View Post
That should be enough for learning and small projects with vbcc. I assume a descent amount of storage space with that too. You may want SAS/C installed also though.
They'll be small learning projects for now for sure, and I do have some Gb's of storage available. Support for C++ would be nice, though, so hopefully I can get my hands on a SAS/C installation as well..
guy lateur is offline  
Old 30 May 2017, 22:46   #39
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 2,975
SAS/C, preinstalled and ready to go: http://eab.abime.net/showthread.php?...ht=sasc658.lha
idrougge is offline  
Old 30 May 2017, 23:09   #40
guy lateur
Registered User

guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 44
Posts: 216
Quote:
Originally Posted by idrougge View Post
SAS/C, preinstalled and ready to go: http://eab.abime.net/showthread.php?...ht=sasc658.lha
Thank you!
guy lateur is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
A/C Compiler christianlucio request.Apps 4 25 September 2014 17:35
Compiler BinoX support.WinUAE 2 22 August 2014 13:10
De-compiler Sim085 support.Other 3 21 November 2013 11:15
amiga c/c++ compiler Fissuras request.Apps 41 18 June 2012 20:50
C compiler raptor_13 Coders. General 14 27 May 2008 09:40

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 22:51.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.26431 seconds with 13 queries