English Amiga Board


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

 
 
Thread Tools
Old 14 November 2023, 02:41   #1
danboid
Registered User
 
Join Date: Sep 2023
Location: England
Posts: 27
Question avr-gcc for 68000

Has anyone here successfully built avr-gcc for 68000 Amigas (running WB 3.1)? I would like to be able to develop for my Uzebox on my Amiga to see how slow it is. If any has got it to build, could you please share it?

Otherwise, what might be the easiest way to build avr-gcc for the classic Amigas and what would be the the most recent version I might be able to build for 68K without too much trouble?
danboid is offline  
Old 14 November 2023, 13:01   #2
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
I would start with Bebbo's GCC. Get it running (e.g. on a Linux box) and use that to build a native 68k cross compiler.
https://github.com/bebbo/amiga-gcc

Quote:
without too much trouble
It will be lots of trouble
nogginthenog is offline  
Old 16 November 2023, 16:18   #3
danboid
Registered User
 
Join Date: Sep 2023
Location: England
Posts: 27
Quote:
Originally Posted by nogginthenog View Post
I would start with Bebbo's GCC. Get it running (e.g. on a Linux box) and use that to build a native 68k cross compiler.
https://github.com/bebbo/amiga-gcc



I don't think this is what I want is it? Does that repo build 68K native gcc that I could run on my A600 or does it build a gcc that I'd run on my x86-64 Linux box so that I could cross-compile Amiga binaries?


The goal is here is to run avr-gcc on an A600 running WB 3.1, I don't want to cross-compile Amiga software under Linux.
danboid is offline  
Old 16 November 2023, 17:29   #4
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,098
Quote:
Originally Posted by danboid View Post
I don't think this is what I want is it? Does that repo build 68K native gcc that I could run on my A600 or does it build a gcc that I'd run on my x86-64 Linux box so that I could cross-compile Amiga binaries?


The goal is here is to run avr-gcc on an A600 running WB 3.1, I don't want to cross-compile Amiga software under Linux.

It builds a gcc targeting m68k that you can run on your Linux machine. On your Linux machine you would use it to build an avr-gcc that you can run on your Amiga. Note that it will probably be quite a bit of work, and there's no guarantee that the resulting executable(s) will be of any practical use (they might use a crazy amount of stack space for example).
paraj is offline  
Old 16 November 2023, 18:39   #5
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
That repo is GCC that can create Amiga 68k executables. This can be used to build a native m68k avr-gcc.
In theory, you can use a native Amiga GCC but this will need 100s of Mb of RAM and lots of time. GCC is huge.

Either way building a cross compiler is not a simple task.

Quote:
The goal is here is to run avr-gcc on an A600 running WB 3.1, I don't want to cross-compile Amiga software under Linux.
You will need a pretty powerful A600.
nogginthenog is offline  
Old 16 November 2023, 20:09   #6
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
Even in the early 90s GCC required more memory compared to the Amiga C Compilers but it was free. I guess it also came built in with C++ and Objective C as well which was a bonus.
redblade is offline  
Old 03 February 2024, 15:52   #7
danboid
Registered User
 
Join Date: Sep 2023
Location: England
Posts: 27
Quote:
Originally Posted by nogginthenog View Post
In theory, you can use a native Amiga GCC but this will need 100s of Mb of RAM and lots of time. GCC is huge.

100's of MBs of RAM? What makes you say this? I'm sure I've read online its possible to run gcc ( just to compile hello world) on the Amiga with as little as 2 MB RAM. Obviously you're not going to build Firefox or gcc on the Amiga with 2 MB RAM but I'm not hoping to do that.


I used to run (an old version) of gcc on a 386SX with 4 MB RAM when I started using Linux and I've also used gcc to build stuff like MAME (for ARM) with 64 MB RAM under Linux, on my Sharp Zaurus, with a more recent version of gcc.
danboid is offline  
Old 03 February 2024, 16:48   #8
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
Quote:
Originally Posted by danboid View Post
100's of MBs of RAM? What makes you say this? I'm sure I've read online its possible to run gcc ( just to compile hello world) on the Amiga with as little as 2 MB RAM. Obviously you're not going to build Firefox or gcc on the Amiga with 2 MB RAM but I'm not hoping to do that.

I used to run (an old version) of gcc on a 386SX with 4 MB RAM when I started using Linux and I've also used gcc to build stuff like MAME (for ARM) with 64 MB RAM under Linux, on my Sharp Zaurus, with a more recent version of gcc.
I was talking about building GCC itself.

I've used GCC in the past (GeekGadgets) on native hardware and also Bebbo's GCC 6.5 had an experimental Amiga build.
My Amiga has ethernet and smb2fs is awesome so these days I use a cross compiler.
nogginthenog 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
Interrupt code with gcc-2.95.3 vs gcc-6.5.0b sq7bti Coders. C/C++ 3 27 November 2021 19:32
itoa in gcc 6.5 sparhawk Coders. C/C++ 1 29 January 2020 18:14
Anyone ever flashed Plipbox AVR-NET-IO in history of mankind? Flash mine for $? Starglider 2 support.Hardware 34 05 May 2016 03:48
Anyone got Plipbox AVR-NET-IO Board? Starglider 2 support.Hardware 11 28 March 2016 18:16
StormC4/GCC JoJo Coders. General 0 28 October 2002 09:38

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 11:49.

Top

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