English Amiga Board


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

 
 
Thread Tools
Old 05 August 2018, 19:09   #901
jotd
Cat freak
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 47
Posts: 2,644
Yeah. I'll adapt my engine to use non-SDL graphics & sounds. I'll keep the event stuff, as it is probably not very CPU hungry.
jotd is offline  
Old 05 August 2018, 19:27   #902
Marlon_
Amiga Programmer

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 30
Posts: 485
Quote:
Originally Posted by jotd View Post
Yeah. I'll adapt my engine to use non-SDL graphics & sounds. I'll keep the event stuff, as it is probably not very CPU hungry.
Marlon_ is offline  
Old 18 August 2018, 21:46   #903
jamie
Registered User
 
Join Date: Aug 2018
Location: canada
Posts: 3
Hello guys, i have an invalid constraint in asm error with this code. If someone has information it will be appreciated, thanks!

INLINE u32 castToU32(float x)
{
u32 value;
__asm ("fmove%.l %1,%0" : "=d" (value) : "f" (x));
return value;
}
jamie is offline  
Old 18 August 2018, 22:29   #904
jamie
Registered User
 
Join Date: Aug 2018
Location: canada
Posts: 3
I forgot to mention i use -68060 flag and this code worked in old 3.4 gcc version.
jamie is offline  
Old 19 August 2018, 01:22   #905
jamie
Registered User
 
Join Date: Aug 2018
Location: canada
Posts: 3
-mhard-float did the job!
jamie is offline  
Old 19 August 2018, 10:32   #906
jotd
Cat freak
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 47
Posts: 2,644
good for you! -mhard-float should always be used because the alternative is soft float which is slow as hell, specially if you have a 68060 it makes no sense (unless you want exactly the same results like on a 68000)
jotd is offline  
Old 21 August 2018, 08:39   #907
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,506
Hi I've got a fresh install of lubuntu 64bit installed as a virtual machine and thought I'd give this a go, can someone help me install it?


Is this info still current and does it apply to my setup?


https://github.com/bebbo/amiga-gcc

Prerequisites


sudo apt install make git gcc g++ lhasa libgmp-dev libmpfr-dev libmpc-dev flex gettext texinfo


How to Clone and Download All You Need

git clone https://github.com/bebbo/amiga-gcc
cd amiga-gcc
make update




I'd also like to get CDT running on lubuntu if possible using this build of gcc.


I'm still learning Linux BTW (more of a Windows user)

Thanx

Last edited by NovaCoder; 21 August 2018 at 09:17.
NovaCoder is offline  
Old 21 August 2018, 10:46   #908
pipper
Registered User

 
Join Date: Jul 2017
Location: San Jose
Posts: 96
Just check out the Amiga-gcc repository,

Then
make all all-sdk -j8 PREFIX=<path to where you want the toolchain>

E voila! It‘ll download some extra sdk‘s and build the whole toolchain (with newlib, clib2 and noixemul all installed in parallel) all in one go.

The binaries to compiler, linker, assembler will be found under <yourprefixpath>/bin and you should add them to your path.
The toolchain comes with a bunch of essential libs (like ahi, cgx, sdl and the AmigaOS 3.0 and 1.3 sdks), so you can get off the ground very quickly.
pipper is offline  
Old 23 August 2018, 02:07   #909
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,506
Thanks for the that, I'll give it a try
NovaCoder is offline  
Old 23 August 2018, 03:25   #910
pipper
Registered User

 
Join Date: Jul 2017
Location: San Jose
Posts: 96
Turns out Tapatalk swallowed parts of my message. PREFIX= should point to the directory where you want the built toolchain to be installed. The toolchain executables are installed underneath in „bin“ with the system includes and ndk etc in parallel
pipper is offline  
Old 23 August 2018, 04:58   #911
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,506
Quote:
Originally Posted by pipper View Post
Turns out Tapatalk swallowed parts of my message. PREFIX= should point to the directory where you want the built toolchain to be installed. The toolchain executables are installed underneath in „bin“ with the system includes and ndk etc in parallel
OK thanks, I'll give it a try tonight.

What's a good directory to use for the PREFIX?
Should it be something like /usr/bin/gcc?
NovaCoder is offline  
Old 23 August 2018, 05:04   #912
pipper
Registered User

 
Join Date: Jul 2017
Location: San Jose
Posts: 96
It’s really up to you. I personally didn‘t like the /opt/amiga directory, and just put it into my home directory somewhere under $HOME/
pipper is offline  
Old 24 August 2018, 02:25   #913
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,506
Hi,

I gave it a try last night and it didn't quite work out (no doubt due to my lack of Linux skills ).

Lubuntu doesn't come with make or gcc so I install both of them first and then pulled down https://github.com/bebbo/amiga-gcc into /home/novacoderDevelopment/amiga-gcc.

I then tried make all all-sdk -j4 PREFIX=/home/novacoder/Development/amiga

And it spewed out the following stack trace (attached), any ideas?
Attached Files
File Type: txt stack trace.txt (54.2 KB, 19 views)
NovaCoder is offline  
Old 24 August 2018, 02:30   #914
pipper
Registered User

 
Join Date: Jul 2017
Location: San Jose
Posts: 96
Seems this is the issue:
make: *** No rule to make target 'projects/newlib-cygwin/configure', needed by 'build/newlib/newlib/Makefile'. Stop.

make: *** Waiting for unfinished jobs....

Not sure why there is Cygwin business in a native Linux environment ?!
pipper is offline  
Old 24 August 2018, 02:45   #915
Marlon_
Amiga Programmer

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 30
Posts: 485
Quote:
Originally Posted by NovaCoder View Post
Lubuntu doesn't come with make or gcc so I install both of them first
Did you do this?
Code:
sudo apt install make git gcc g++ lhasa libgmp-dev libmpfr-dev libmpc-dev flex gettext texinfo
Marlon_ is offline  
Old 24 August 2018, 02:52   #916
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,506
Quote:
Originally Posted by Marlon_ View Post
Did you do this?
Code:
sudo apt install make git gcc g++ lhasa libgmp-dev libmpfr-dev libmpc-dev flex gettext texinfo
Yep, was that my bad?

I'm not a Linux guy BTW, just starting out with Ubuntu
NovaCoder is offline  
Old 24 August 2018, 02:53   #917
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,506
Quote:
Originally Posted by pipper View Post
Seems this is the issue:
make: *** No rule to make target 'projects/newlib-cygwin/configure', needed by 'build/newlib/newlib/Makefile'. Stop.

make: *** Waiting for unfinished jobs....

Not sure why there is Cygwin business in a native Linux environment ?!
Yep I noticed that too, thought it was a bit weird.
NovaCoder is offline  
Old 24 August 2018, 02:53   #918
Marlon_
Amiga Programmer

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 30
Posts: 485
Quote:
Originally Posted by NovaCoder View Post
Yep, was that my bad?

I'm not a Linux guy BTW, just starting out with Ubuntu
Nah, you're supposed to do that. Just making sure.
Marlon_ is offline  
Old 24 August 2018, 02:53   #919
Marlon_
Amiga Programmer

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 30
Posts: 485
Quote:
Originally Posted by NovaCoder View Post
Yep I noticed that too, thought it was a bit weird.
Did you run "make update" before "make all"?
Marlon_ is offline  
Old 24 August 2018, 03:00   #920
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,506
Quote:
Originally Posted by Marlon_ View Post
Did you run "make update" before "make all"?
Nope, I'll try that now.

Thanks

Update: Seems happier now, still building...



OK that worked, now trying to use eclipse CDT, anyone have any tips?

Thanks
Attached Thumbnails
Click image for larger version

Name:	m68k CDT.png
Views:	36
Size:	150.6 KB
ID:	59480  

Last edited by NovaCoder; 24 August 2018 at 09:15.
NovaCoder 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
New GCC based dev toolchain for AmigaOS 3.x cla Coders. Releases 8 24 December 2017 11:18
Issue with photon/xxxx WinUAE Toolchain arpz Coders. Asm / Hardware 2 26 September 2015 23:33
New 68k gcc toolchain arti Coders. C/C++ 17 31 July 2015 04:59
Hannibal's WinUAE Demo Toolchain 5 Bobic Amiga scene 1 23 July 2015 22:04
From gcc to vbcc. Cowcat Coders. General 9 06 June 2014 15:45

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 16:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.11588 seconds with 16 queries