English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 26 August 2012, 18:53   #1
BvdW
Registered User
 
Join Date: Aug 2012
Location: Netherlands
Age: 46
Posts: 11
How to get an environment set up??

Hello all,
Just recently I dug up an old Amiga 500 and I decided I'd try my hand at programming it, in C as that's closest to the C++ I know from my PC. However, I've spent all day now figuring out how best to go about this and I've hit rock bottom.

The A500 itself has only 1MB of RAM and no hard drive, so I don't think I can get any sort of compiler running comfortably on this. I've given up on this option, but I'd happily try advice from anyone who can point me towards a workable option here (or inside UAE).

My second option would be to build a cross-compiler on my trusty Linux PC. Sadly, though, I haven't been able to get GCC to build for the 68000 cpu at all, and then there's the issue with libraries..

My actual first goal with all of this, is to develop a modified version of the Transwarp software to allow it to use the X/Y/ZMODEM protocol to make transers that much more robust and to show errors immediately instead of waiting half an hour just to get a bad disk. The end result therefore must run on my paltry A500 with firmware 1.2.

Regardless of all of that.. I feel miles removed from even getting Hello World to compile, let alone my intended project. Any help would be very much appreciated!
BvdW is offline  
Old 27 August 2012, 13:07   #2
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Try vbcc, it's easy to compile and use, and is actively developed: http://sun.hasenbraten.de/vbcc/

You also need vasm and vlink from there, and an AmigaOS NDK: http://eab.abime.net/showpost.php?p=769595&postcount=21

I think you can run SAS/C on your 1M system, but you will have to strip the full installation to fit on a single 880K disk: https://www.dropbox.com/s/rt23fhty36...sc658.lha?dl=1

You could also run SAS/C and other Amiga CLI tools directly on your Linux using Amitools: http://lallafa.de/blog/amiga-projects/amitools/

Last edited by Leffmann; 21 December 2016 at 20:22.
Leffmann is offline  
Old 28 August 2012, 23:36   #3
BvdW
Registered User
 
Join Date: Aug 2012
Location: Netherlands
Age: 46
Posts: 11
Thanks for the great tips. They're definitely useful, but not directly for my current situation as I can't find anything that'll work with Kick/WB 1.x. I'm currently looking into running Aztec C through UAE until I beef up my real Amiga enough to run a dev environment natively.
BvdW is offline  
Old 29 August 2012, 01:55   #4
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Both SAS/C and vbcc can run on, and produce code for, 1.3 and probably 1.2 as well. But if you're looking for finished installs split into 880K disks - sorry I don't know of any.

It only takes a couple of minutes to build and set up vbcc, since you mentioned cross-compilation as an option. I use it on a Mac to compile executables directly into an emulated Amiga, it's very effortless.

If you want to go the UAE-route you might as well use the full SAS/C, or one of the GCC environments such as LouiSe's dev tools for UAE: http://www.innoidea.hu/subsites/amig.../phpwebdev.php
Leffmann is offline  
Old 29 August 2012, 10:06   #5
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
I think the Mastering Amiga C book (Paul Overaa) came with a compiler on floppy disk...? It might have been NorthC.

DICE was another one you might be able to use.

I've never used either of these so they might be rubbish... but maybe worth a look ?
musashi5150 is offline  
Old 03 September 2012, 16:09   #6
watz
 
Posts: n/a
I got my hands on some A500, too. Unlike 20 years ago, I'm capable of coding C now and eager to try it on that box :-)

I've built a cross compiling vbcc from the current sources (that now have KS1.3 support) for Windows today using this tutorial here. You can find my modified sources here and my Amiga build environment including the binaries here.

All you need to do is to change the paths ("C:\Amiga\vbcc") given in "vbcc.cmd" and "kick13.cfg" so they match your destination folder.

Using that installation, I was able to successfully run the included "helloworld" project on KS1.3/WB1.3 (with +kick13.cfg) and KS3.1/WB3.1 (with default config "vc.cfg"). I can also confirm that trying to run the app built with the default config on KS1.3/WB1.3 produces a "file is not an object module" error.

Greetings,
Watz
 
Old 02 April 2014, 16:08   #7
Vexar
Registered User
 
Join Date: Mar 2014
Location: Plymouth, Minnesota USA
Posts: 10
what about editors?

Hello,
in the same thread of things, is there an editor or integrated development environment that is popular for C/C++ on the Amiga? Oracle jDeveloper would be overkill, VI would be a bit lacking.
Vexar is offline  
Old 15 May 2014, 07:29   #8
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by Vexar View Post
Hello,
in the same thread of things, is there an editor or integrated development environment that is popular for C/C++ on the Amiga? Oracle jDeveloper would be overkill, VI would be a bit lacking.
Developing C++ applications running on a real 68k machine isn't a nice experience.

There are a couple of 68k IDE's available....Storm V4 and CubicIDE. I managed to do a bit of development with Storm on my A1200 030 but never got anything productive done using CubicIDE.

These days I use a gcc cross compiler running under Windows 7 (AmiDevCpp).
NovaCoder is offline  
Old 15 May 2014, 21:05   #9
djukon
Registered User
 
Join Date: Apr 2010
Location: 640x512
Posts: 167
Quote:
Originally Posted by NovaCoder View Post
These days I use a gcc cross compiler running under Windows 7 (AmiDevCpp).
That is for AmigaOS 3.x+ targets, what about for AmigaOS 1.x/2.x, any cross compilers (in an IDE)? For the case when one wishes to develop something that would work on an A500.

Last edited by djukon; 15 May 2014 at 21:31.
djukon is offline  
Old 16 May 2014, 07:18   #10
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
I used to use SAS/C on a floppy-only A500 with Kickstart 1.2 and 1Mb RAM. So it will definitely run on such a configuration. You might have to give "memsize=tiny" on the command line or in the scoptions file.
Minuous is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
LouiSe's GCC Environment Morbane request.Apps 0 27 December 2011 08:02
A working DOS environment for my Amikit ancalimon request.Other 5 06 December 2009 23:03
D.U.N.E. (Developers Universal Non-programming Environment) Shoonay request.Old Rare Games 8 22 February 2009 13:46
Emu in multicore environment potis21 request.UAE Wishlist 10 26 April 2008 02:41
Developer environment (common task ;) nzo Coders. General 5 11 February 2006 12:28

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 13:23.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08158 seconds with 15 queries