22 January 2019, 17:31 | #1041 | |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
Quote:
Better stay with 2.0 as min requirement |
|
22 January 2019, 17:51 | #1042 | |
Registered User
|
Hi, thank you for your reply.
Quote:
Sure, I could just use MonAm for that, too, but for C/C++ source this simply isn't the optimal debugger. |
|
22 January 2019, 18:09 | #1043 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
|
22 January 2019, 18:21 | #1044 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
In my opinion it makes a lot of sense to debug programs for KS1.3 under KS2.0, because it is much more comfortable to debug in the C source code. Debugging under KS1.3 will not be completely avoidable until all problems under KS1.3 are fixed. I use DBug from O.M.A. for this. |
|
22 January 2019, 19:41 | #1045 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
|
22 January 2019, 20:05 | #1046 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Sorry, I just implemented malloc for KS1.3 at some point and I'm known for rough manners, if I have any at all. Please don't take it personally.
Quote:
But first provide me a TCP stack for KS1.3, ... well gdb has support for serial connections... ... and bgdbserver doesn't ... => it's a bit more work than just recompiling |
|
23 January 2019, 21:37 | #1047 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
This gathers some tricks
https://medium.com/@renaudcerrato/th...w-33e788020221 |
27 January 2019, 00:22 | #1048 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 652
|
One more question with respect to LTO:
Presumed I use two separate gcc invocations for compile & link, which compiler flags have to be presented to the linking invocation, too, when using LTO? Options like -mXXX -fxxx -Ox etc? All flags? |
30 January 2019, 20:40 | #1049 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
|
31 January 2019, 10:43 | #1050 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
|
|
31 January 2019, 11:11 | #1051 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
and thanks - void functions did mark d0 as used => couldn't eliminate assignment to d0. https://franke.ms/cex/ |
|
31 January 2019, 17:14 | #1052 |
Registered User
Join Date: May 2011
Location: Cambridge
Posts: 682
|
I was a bit surprised but is it expected (and will remain the case) that .align N directive in gas will round up the location counter so that bottom N bits are zero (rather than N being a simple byte alignment)?
eg. .align 4 aligns to a 16-byte boundary. I will switch to .balign 4 which has the less confusing byte alignment. |
31 January 2019, 17:18 | #1053 | |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
|
Quote:
|
|
31 January 2019, 17:34 | #1054 |
Registered User
Join Date: May 2011
Location: Cambridge
Posts: 682
|
|
31 January 2019, 21:40 | #1055 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
|
01 February 2019, 03:25 | #1056 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
I just had a quick go at building AmiWolf (basic C application) using the latest GCC 6.5 but I'm having linker issues. I've probably stuffed something silly up again
Does anyone have any idea what I've done wrong? PHP Code:
PHP Code:
|
01 February 2019, 09:27 | #1057 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
a) use g++ as cross-linker (adds -lm early so `__MathIeeeDoubTransBase' gets picked up) b) add -lm (either add library `m' oder add miscellaneous `-lm') |
|
01 February 2019, 11:07 | #1058 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Okay thanks, I'll try it
Update: Finally got one of my old ports running under a newer GCC Thanks Stefan! Last edited by NovaCoder; 02 February 2019 at 00:06. |
02 February 2019, 11:46 | #1059 |
Registered User
Join Date: Jan 2019
Location: Brisbane
Posts: 99
|
Hey all new here, but I have been playing around with the 6.2 toolchain for a couple weeks now, actually porting a project from console to Amiga. It is all compiling/linking and running after dealing with some platform and endian issues. So that's very cool and it's amazing to see it running on Miggy! I am running in to performance issues though and was hoping for some advice and direction.
First one is how to inline 68k assembly, or advice on best way to use 68k assembly with the C/C++ project. Also on this I cant' figure out how to see the assembly dump of the various methods and functions, to spot optimization targets. For optimization I tried using http://aminet.net/package/dev/misc/AProf334 and not sure why this happens, it opens the executable fine, and shows a whole lot of functions but when I start my port just terminates after a short time. The port works fine when starting from shell. I am using the AGA SDL framework also on Aminet could that be taking over the system or something like that? Not really sure. Any help you could provide would be awesome. |
02 February 2019, 12:20 | #1060 | ||
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
Quote:
The syntax is not intuitive. It would be better to have a separate assembly file where your assembler code would be. Assembly dump with compiler flags -S Quote:
|
||
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 |
|
|