![]() |
![]() |
#521 |
Indie Game Dev
![]() |
|
![]() |
![]() |
#522 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
I may have found a solution to prevent the freeze feature when using 'make -jN' under cygwin.
same with building gcc6 using "--threads N". Code:
export SHELL=CMD for now it does work. #1) btw. I build SDL_image with gcc6 "-noixemul -m68020-40 -msoft-float -g -O2" this does crash the gcc3 linker --> when building without "-O2" - the lib does link without problem. Last edited by emufan; 20 December 2017 at 00:43. |
![]() |
![]() |
#523 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
![]() |
![]() |
#524 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
![]() Last edited by emufan; 20 December 2017 at 01:38. |
|
![]() |
![]() |
#525 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
![]() |
|
![]() |
![]() |
#526 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
does it retain compatibility to non-AMMX machines? Code:
video/amigaos/SDL_cgxvideo.c:34:23: error: expected identifier or ‘(’ before numeric constant #define Apollo_AMMXon 0 ^ ./video/apollo/apolloammxenable.h:24:22: note: in expansion of macro ‘Apollo_AMMXon’ extern unsigned char Apollo_AMMXon; ^~~~~~~~~~~~~ video/amigaos/SDL_cgxvideo.c: 34: #define Apollo_AMMXon 0 35: 36: #include "SDL_config.h" Last edited by emufan; 20 December 2017 at 01:45. |
|
![]() |
![]() |
#527 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Yes, the AMMX asm-files checks which CPU it is and uses the appropriate instructions depending on CPU. Makefile.bax uses VASM to compile these files before including them in the gcc6 linker.
|
![]() |
![]() |
#528 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
![]() |
![]() |
#529 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
![]() |
![]() |
#530 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
somehoiw I made a makefile mix with the non-AMMX version, it did build a lib,
which has some apollo functions included. differs in size. I'll let xboxnow test the one (edgar) ![]() |
![]() |
![]() |
#531 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Merry Christmas!
I just switched the binutils to amiga hunk format to enable the now supported memory qualifiers Code:
__chip int yeah_in_chip = 1234; __fast int oh_so_fast = 999; __far int no_base_rel = 456; // never use baserel (a4) addressing The examples do work and way more. Happy New Year :-) |
![]() |
![]() |
#532 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,200
|
Sweet!
|
![]() |
![]() |
#533 |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 882
|
Nice work bebbo!
|
![]() |
![]() |
#534 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
![]() |
![]() |
#535 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
|
|
![]() |
![]() |
#536 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Here a simple test program which creates all kind of memory hunks:
mem.c: Code:
#include <stdio.h> int dat[] = {1, 2, 3, 4}; __chip int cdat[] = {11, 12, 13, 14}; __far int fdat[] = {121, 122, 123, 124}; __fast int adat[] = {221, 222, 223, 224}; __chip int ucdat[4]; __far int ufdat[4]; __fast int uadat[4]; int iii; int foo(int i) { return iii += i; } int main(int argc, char ** argv) { printf("%08x %08x %08x %08x\n", dat, cdat, fdat, adat); foo(dat[2] + cdat[2] + fdat[2] + adat[2]); adat[2] = ucdat[3] = cdat[3]; fdat[2] = uadat[3] = adat[3]; cdat[2] = ufdat[3] = fdat[3]; return dat[1] + cdat[1] + fdat[1] + adat[1] + iii; } Code:
m68k-amigaos-gcc -noixemul -Os -fbaserel mem.c -o mem -s Code:
hunk 000003f3, HUNK_HEADER, 0 8 sections, 0 - 7 sizes: 6400, 964, 16(c), 16(f), 16, 16(c), 16(f), 16 hunk 000003e9, HUNK_CODE, 6400 hunk 000003ec, HUNK_RELOC32, 376 hunk 000003ea, HUNK_DATA, 796 hunk 000003ec, HUNK_RELOC32, 68 hunk 000003ea, HUNK_DATA, 16 hunk 000003ea, HUNK_DATA, 16 hunk 000003ea, HUNK_DATA, 16 hunk 000003eb, HUNK_BSS, 16 hunk 000003eb, HUNK_BSS, 16 hunk 000003eb, HUNK_BSS, 16 |
![]() |
![]() |
#537 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 723
|
Man, that's sweet! Thanks for your effort.
|
![]() |
![]() |
#538 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 665
|
Any chance we get gprof?
|
![]() |
![]() |
#539 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
![]() |
![]() |
#540 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 677
|
Next on my wishlist would be a gdbserver / gdbclient that can allow for remote, source level debugging. I would love to fully use qtcreator on a Linux or Windows box to do cross platform development :-D
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
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 |
|
|