![]() |
![]() |
#721 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
![]() |
![]() |
#722 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
![]() is there a cmake option to list all those defintions ( -D .... ) for the given CMakeLists.txt? |
|
![]() |
![]() |
#723 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
![]() |
![]() |
#724 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
@bebbo
btw, by chance, you didnt made any attempt to make gcc deal with motorola asm syntax so far? |
![]() |
![]() |
#725 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
note that you must not append trash data to a hunk library file - some people used to append a version string to the lib...
|
![]() |
![]() |
#726 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
btw: amiga-gcc has now support for the sdks.
|
![]() |
![]() |
#727 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
![]() |
![]() |
#728 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
Code:
CXX=m68k-amigaos-g++.exe AR=m68k-amigaos-ar.exe RANLIB=m68k-amigaos-ranlib.exe CXXFLAGS=-noixemul -c -Wall -Iinclude LDFLAGS= SOURCES=src/binary.cpp \ src/convert.cpp \ src/directives.cpp \ src/emit.cpp \ src/emitfromevents.cpp \ src/emitter.cpp \ src/emitterstate.cpp \ src/emitterutils.cpp \ src/exceptions.cpp \ src/exp.cpp \ src/memory.cpp \ src/node.cpp \ src/node_data.cpp \ src/nodebuilder.cpp \ src/nodeevents.cpp \ src/null.cpp \ src/ostream_wrapper.cpp \ src/parse.cpp \ src/parser.cpp \ src/regex_yaml.cpp \ src/scanner.cpp \ src/scanscalar.cpp \ src/scantag.cpp \ src/scantoken.cpp \ src/simplekey.cpp \ src/singledocparser.cpp \ src/stream.cpp \ src/tag.cpp \ src/contrib/graphbuilder.cpp \ src/contrib/graphbuilderadapter.cpp OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=yaml-cpp LIBRARY=libyaml-cpp.a # all: $(SOURCES) $(EXECUTABLE) $(LIBRARY) all: $(SOURCES) $(LIBRARY) $(EXECUTABLE): $(OBJECTS) $(CXX) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBRARY): $(OBJECTS) $(AR) cru libyaml-cpp.a src/binary.o src/convert.o src/directives.o src/emit.o src/emitfromevents.o src/emitter.o src/emitterstate.o src/emitterutils.o src/exceptions.o src/exp.o src/memory.o src/node.o src/node_data.o src/nodebuilder.o src/nodeevents.o src/null.o src/ostream_wrapper.o src/parse.o src/parser.o src/regex_yaml.o src/scanner.o src/scanscalar.o src/scantag.o src/scantoken.o src/simplekey.o src/singledocparser.o src/stream.o src/tag.o src/contrib/graphbuilder.o src/contrib/graphbuilderadapter.o $(RANLIB) libyaml-cpp.a cpp.o: $(CXX) $(CXXFLAGS) $< -o $@ clean : -rm -r src/*.o libyaml-cpp.a ![]() Last edited by emufan; 03 February 2018 at 23:10. |
|
![]() |
![]() |
#729 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
as *does* assemble motorola asm code Only objdump does not yet produce morotola asm code. And it is dumb work with little value for me... |
|
![]() |
![]() |
#730 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
|
![]() |
![]() |
#731 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
I just extracted the yaml-cpp source somewhere else, put my makefile in that folder. now it does build without ranlib error. Code:
$ m68k-amigaos-ar.exe t libyaml-cpp.a binary.o convert.o .... graphbuilderadapter.o ![]() Last edited by emufan; 03 February 2018 at 23:21. |
|
![]() |
![]() |
#732 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
![]() (maybe it was an arch object file? I think you can add it to a hunk lib but the hunk ranlib can't parse it) I used cygwin too, but now I'm often using a Linux/VM since it's way faster. |
|
![]() |
![]() |
#733 | ||
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
yep, good to see things are working as they should
![]() Quote:
Quote:
and does crash whole windows, using "-j4" "--threads 4" ... have to reboot to windows safe mode (f8) - 30 mins vs xx hours :/ |
||
![]() |
![]() |
#734 | |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
Quote:
btw. apparently it still doesnt parse semicolon as a comment token. Last edited by wawa; 04 February 2018 at 21:39. |
|
![]() |
![]() |
#735 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
=> can't change it without hitting to much And I guess, you simply have to define Code:
#define REGISTER_PREFIX_OPTIONAL 1 EDIT: objdump displays now MOTOROLA syntax. Code:
> m68k-amigaos-objdump.exe -dA ins.o ins.o: file format amiga Disassembly of section .text: LLL: asl.w #2,d2 moveq #1,d0 move.l d0,(a0)+ move.l d0,-(a0) movea.w d0,a0 move.l d0,-123(a0) move.l d0,123(a0) move.l d0,(42,a0,d1.w) move.l d0,(42,a0,d1.w*4) move.l d0,([42,a0],d1.w*4,7) move.l d0,([42,a0,d1.w*4],7) lea LLL+0xa7(pc),a0 bne.s LLL+0x44 move.l (LLL+0x5c,pc,d1.w),d0 move.l ([LLL+0x60,pc],d1.w*4,3),d0 move.l ([LLL+0x68,pc,d1.w*4],3),d0 rts Last edited by bebbo; 04 February 2018 at 23:51. |
|
![]() |
![]() |
#736 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
|
![]() |
![]() |
#737 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
btw:
Code:
error: no such remote ref f494ffb0f9f668a9111d7ad3afa2d7a50a348a53 Fetched in submodule path 'submodules/binutils-2.14', but it did not contain f494ffb0f9f668a9111d7ad3afa2d7a50a348a53. Direct fetching of that commit failed. ERROR: command "git submodule update" failed with 1 |
![]() |
![]() |
#738 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
Or are you using this: https://github.com/bebbo/amiga-gcc ? |
|
![]() |
![]() |
#739 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
amigaos-cross-toolchain afa i see..
|
![]() |
![]() |
#740 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
I recommend using amiga-gcc as it's essentially the same, but compiles much faster as it supports parallell compilation. I'm compiling it all with "make -j8" and it takes no time to compile it all. Cygwin might have an issue with it, but as long as you're compiling native on Linux or Mac, there shouldn't be an issue.
![]() |
![]() |
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 |
|
|