14 April 2017, 19:41 | #201 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 690
|
Ok, there you go. I just pushed it :-)
Happy testing! PS: m68k-amigaos-gcc --help=target (and excuse the bad formatting...) |
14 April 2017, 21:19 | #202 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
@matthey
amidevcpp looks like an easy entry but is actually handicap i think. its better to use shell, configure and make and edit the sources respectively. with amidevcpp you have to build its own custom makefiles, practically regenrating the project which potentially leads to a mess in dependencies and the result isnt portable anymore. i think i wouldnt use devcpp today anymore. |
14 April 2017, 22:21 | #203 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 690
|
Quote:
|
|
15 April 2017, 02:21 | #204 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
Novacoder and lantus360 successfully built some large projects and it was their choice of a development environment so I don't think it is bad. Perhaps there were not many easy choices though. It would be good to have more choices of easy to install development environments for the Amiga. Amiga development needs to be easier to encourage it. Sadly, most Amiga hardware is inadequate (too slow, not enough memory, etc.) or too expensive to develop natively on. |
|
18 April 2017, 07:25 | #205 |
Registered User
Join Date: Dec 2016
Location: USA
Posts: 101
|
I thought it would be fun to develop on my A2000 but quickly figured out that it's just not going to happen with an 030 and 16MB of RAM. I still use it for remote debugging and when I want to play in ASM-One but C happens on my PC with WinUAE.
GCC 6 does look like it's going to be useful for my other project at the moment which is homebrew for a 68K-based arcade system. I'm doing it with GCC 4.3 (I think?) at the moment. I couldn't get Newlib to compile with it - I'll see if I can get 6 to cooperate. |
18 April 2017, 17:20 | #206 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,224
|
Where does one find the LHa unpacker for Python 2.7? I tried building it on my AMD64 Debian Jessie box but it couldn't unpack most of the packages.
|
18 April 2017, 17:27 | #207 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
since gdb works well with aros i tried to use it with binaries generated for amiga-m68k target (while keeping them in elf format), which i accidentally got one or another time some feedback from, but couldnt figure it out reliably, neither via tcp localhost nor via console. it shouldnt be so hard, and there are some instructions, on how to do this on the web, but generating bins with debug symbols have been broken lately and still..
|
18 April 2017, 17:46 | #208 | ||
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
Quote:
Quote:
i really think we need to stick to cross compilers for now. may be that on aros the substantial part of the toolchain will work natively soon. i had a hint lately but being busy elsewhere have not checked that out. you might well be able to compile aros-68k binaries with gcc6 on an amiga already, im not sure. |
||
18 April 2017, 21:17 | #209 | |
dev
|
Quote:
|
|
19 April 2017, 05:21 | #210 | |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,224
|
Quote:
EDIT Ha! Figured it out! The "build" subcommand would have taken care of them itself if I had run it with the "./scriptname" instead of "python scriptname". I just had to make a link called python27 that would link back to python. EDIT2 Ok now I have a real issue in the downloaded cross-toolchain after it built. When including sdtddef.h in an ANSI C source it generates a conflict of two typedefs for wchar_t. One for GCC's headers and another for the system headers. Last edited by Samurai_Crow; 19 April 2017 at 09:38. Reason: merging back to back posts |
|
19 April 2017, 13:18 | #211 | |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,377
|
Quote:
|
|
19 April 2017, 18:11 | #212 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,224
|
Is there a define macro that I am supposed to instantiate to prevent one of the definitions of wide characters?
|
20 April 2017, 01:01 | #213 |
Registered User
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
|
Just read through this interesting thread. I've quite literally this week been playing with VBCC and the cahirwpz gcc toolchain (I had not seen this thread). I'll start a separate thread since I have some questions that are too general for here but I just thought I'd add...
I just built a fresh install of macOS Sierra and decided I'd try to cross compile instead of using SAS/C on my non-RTG A1200. I have JetBrains CLion which uses CMAKE. I could of course use VSCode or Sublime Text 3 but since I have a JetBrains subscription I figured I may as well give the modern IDE a shot. In short, I couldn't get CLion / CMake to play nicely with VBCC but it seemed to work well enough with the version of GCC that I compiled. As far as my simple tests went. Full code inspection and intelligence for Amiga libs. Very nice. I didn't do anything special about 32bit gcc so I expect my install is flawed but a simple MUI hello world worked OK. |
26 April 2017, 12:31 | #214 |
Registered User
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
|
So, I did some more building of this the other night. I'm on OS X. If I build with --m32 then the build fails. I assume this is why it says it is currently broken on MacOS?
If however I just build (without --m32) then the build completes OK and a simple intuition based Hello World builds and runs fine on FS-UAE. Can I assume from the latter that everything is OK and I am good to go? Or does my simple example program not scratch the surface enough to hit the reason that this is currently marked as broken on Mac? I am unlikely to be getting anywhere near the level of complexity demonstrated in this thread and will be just doing simple stuff for now. Thanks. |
26 April 2017, 12:32 | #215 | |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 936
|
Quote:
|
|
26 April 2017, 13:37 | #216 |
Registered User
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
|
Thank you - I'm a little bit confused about the difference though.
If it will work fine in 64bit mode, why have the 32bit mode? What is the difference? Obviously I know what 64bit is, and what 32bit is. Since the 68k Amiga is not 64bit, is GCC outputting 32bit binaries regardless of the mode? Sorry if that's a bit of a noob / obvious question! |
26 April 2017, 13:46 | #217 | |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 936
|
Quote:
I am unsure if binutils (assembler/linker) works perfectly on OSX with 64 bit because I use a different set of tools, but gcc works fine. I would say just go for it and just report any issues you find. Sounds like the basics are working though? |
|
26 April 2017, 13:51 | #218 |
Registered User
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
|
Indeed, the basics seem to be fine. I'm using Jetbrains Clion IDE with a CMake script and I haven't really paid much attention to what the output window says it's doing / using. Maybe I should pay more attention
Thanks for the explanation. I'll report back if I get stuck. |
04 May 2017, 23:16 | #219 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 690
|
Just pushed an update with plenty fixes and some improvements.
Big, big, biiiiiiiiig thanks to alpine9000 who did lot's of testing, bug finding and test case building. Code:
tscpsc: 18920ms tscpgcc: 14120ms tscpvbcc: 14120ms tscpgcc6: 11560ms (once at 12280ms ) I have ideas for further otimizations in my pockets, and I'm open for suggestions (little effort -> huge effect) |
04 May 2017, 23:30 | #220 | |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 936
|
Quote:
Really great reat work bebbo, this is such an important project to keep the classic Amiga scene moving forward. Thanks for all your work! |
|
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 10:18 |
Issue with photon/xxxx WinUAE Toolchain | arpz | Coders. Asm / Hardware | 2 | 26 September 2015 22:33 |
New 68k gcc toolchain | arti | Coders. C/C++ | 17 | 31 July 2015 03:59 |
Hannibal's WinUAE Demo Toolchain 5 | Bobic | Amiga scene | 1 | 23 July 2015 21:04 |
From gcc to vbcc. | Cowcat | Coders. General | 9 | 06 June 2014 14:45 |
|
|