Created
October 26, 2022 05:36
-
-
Save ryandesign/1ad7e2e2f6cf967548928750d872e033 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
printf("Press Return to quit.\n"); | |
getchar(); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RETRO68=/opt/local/libexec/Retro68 | |
PREFIX=$(RETRO68)/m68k-apple-macos | |
CC=$(RETRO68)/bin/m68k-apple-macos-gcc | |
CXX=$(RETRO68)/bin/m68k-apple-macos-g++ | |
REZ=$(RETRO68)/bin/Rez | |
LDFLAGS=-lRetroConsole | |
RINCLUDES=$(PREFIX)/RIncludes | |
REZFLAGS=-I$(RINCLUDES) | |
.PHONY: all | |
all: out0.bin out0.APPL out0.dsk | |
all: out1.bin out1.APPL out1.dsk | |
all: out2.bin out2.APPL out2.dsk | |
all: out3.bin out3.APPL out3.dsk | |
out0.code.bin: main.o | |
$(CXX) $< -o $@ $(LDFLAGS) | |
out1.code.bin: main.o | |
$(CXX) $< -o $@ $(LDFLAGS) -Wl,--mac-segments,map1.segmap | |
out2.code.bin: main.o | |
$(CXX) $< -o $@ $(LDFLAGS) -Wl,--mac-segments,map2.segmap | |
out3.code.bin: main.o | |
$(CXX) $< -o $@ $(LDFLAGS) -Wl,--mac-segments,map3.segmap | |
out0.bin out0.APPL out0.dsk: out0.code.bin | |
$(REZ) $(REZFLAGS) \ | |
--copy "out0.code.bin" \ | |
"$(RINCLUDES)/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out0.bin --cc out0.APPL --cc out0.dsk | |
out1.bin out1.APPL out1.dsk: out1.code.bin | |
$(REZ) $(REZFLAGS) \ | |
--copy "out1.code.bin" \ | |
"$(RINCLUDES)/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out1.bin --cc out1.APPL --cc out1.dsk | |
out2.bin out2.APPL out2.dsk: out2.code.bin | |
$(REZ) $(REZFLAGS) \ | |
--copy "out2.code.bin" \ | |
"$(RINCLUDES)/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out2.bin --cc out2.APPL --cc out2.dsk | |
out3.bin out3.APPL out3.dsk: out3.code.bin | |
$(REZ) $(REZFLAGS) \ | |
--copy "out3.code.bin" \ | |
"$(RINCLUDES)/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out3.bin --cc out3.APPL --cc out3.dsk | |
.PHONY: clean | |
clean: | |
rm -f *.APPL *.bin *.bin.gdb *.dsk *.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEGMENT libstdc++ locale | |
*/libstdc++.a:locale.o | |
*/libstdc++.a:locale_faces.o | |
*/libstdc++.a:locale_init.o | |
SEGMENT libstdc++ locale-inst | |
*/libstdc++.a:locale-inst.o | |
SEGMENT libstdc++ wlocale-inst | |
*/libstdc++.a:wlocale-inst.o | |
SEGMENT libstdc++ cp-demangle | |
*/libstdc++.a:cp-demangle.o | |
SEGMENT libstdc++ | |
*/libstdc++.a:* | |
SEGMENT RetroConsole | |
*/libRetroConsole.a:* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEGMENT libstdc++ locale | |
*/libstdc++.a:locale.o | |
*/libstdc++.a:locale_faces.o | |
*/libstdc++.a:locale_init.o | |
SEGMENT libstdc++ locale-inst | |
*/libstdc++.a:locale-inst.o | |
SEGMENT libstdc++ wlocale-inst | |
*/libstdc++.a:wlocale-inst.o | |
SEGMENT libstdc++ cp-demangle | |
*/libstdc++.a:cp-demangle.o | |
SEGMENT libstdc++ | |
*/libstdc++.a:* | |
SEGMENT RetroConsole | |
*/libRetroConsole.a:* | |
SEGMENT empty1 | |
*/empty1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEGMENT libstdc++ locale | |
*/libstdc++.a:locale.o | |
*/libstdc++.a:locale_faces.o | |
*/libstdc++.a:locale_init.o | |
SEGMENT libstdc++ locale-inst | |
*/libstdc++.a:locale-inst.o | |
SEGMENT libstdc++ wlocale-inst | |
*/libstdc++.a:wlocale-inst.o | |
SEGMENT libstdc++ cp-demangle | |
*/libstdc++.a:cp-demangle.o | |
SEGMENT libstdc++ | |
*/libstdc++.a:* | |
SEGMENT RetroConsole | |
*/libRetroConsole.a:* | |
SEGMENT empty1 | |
*/empty1 | |
SEGMENT empty2 | |
*/empty2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/local/libexec/Retro68/bin/m68k-apple-macos-gcc -c -o main.o main.c | |
/opt/local/libexec/Retro68/bin/m68k-apple-macos-g++ main.o -o out0.code.bin -lRetroConsole | |
/opt/local/libexec/Retro68/bin/Rez -I/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes \ | |
--copy "out0.code.bin" \ | |
"/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out0.bin --cc out0.APPL --cc out0.dsk | |
/opt/local/libexec/Retro68/bin/m68k-apple-macos-g++ main.o -o out1.code.bin -lRetroConsole -Wl,--mac-segments,map1.segmap | |
/opt/local/libexec/Retro68/bin/Rez -I/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes \ | |
--copy "out1.code.bin" \ | |
"/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out1.bin --cc out1.APPL --cc out1.dsk | |
/opt/local/libexec/Retro68/bin/m68k-apple-macos-g++ main.o -o out2.code.bin -lRetroConsole -Wl,--mac-segments,map2.segmap | |
/opt/local/libexec/Retro68/bin/Rez -I/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes \ | |
--copy "out2.code.bin" \ | |
"/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out2.bin --cc out2.APPL --cc out2.dsk | |
/opt/local/libexec/Retro68/bin/m68k-apple-macos-g++ main.o -o out3.code.bin -lRetroConsole -Wl,--mac-segments,map3.segmap | |
Invalid ref from .code2:c to .code1(puts)+139052 | |
needsJT: true | |
from addr: 139052, exceptionInfoStart: 79788 | |
Invalid ref from .code2:14 to .code1(getchar)+139060 | |
needsJT: true | |
from addr: 139060, exceptionInfoStart: 79788 | |
Invalid ref from .code2:7c to .code1(__adddf3)+139164 | |
needsJT: true | |
from addr: 139164, exceptionInfoStart: 79788 | |
Invalid ref from .code2:8e to .code1(__gtdf2)+139182 | |
needsJT: true | |
from addr: 139182, exceptionInfoStart: 79788 | |
Invalid ref from .code2:f8 to .code1(__adddf3)+139288 | |
needsJT: true | |
from addr: 139288, exceptionInfoStart: 79788 | |
Invalid ref from .code2:10a to .code1(__gtdf2)+139306 | |
needsJT: true | |
from addr: 139306, exceptionInfoStart: 79788 | |
Invalid ref from .code2:13a to .code1(__adddf3)+139354 | |
needsJT: true | |
from addr: 139354, exceptionInfoStart: 79788 | |
Invalid ref from .code2:14c to .code1(__gtdf2)+139372 | |
needsJT: true | |
from addr: 139372, exceptionInfoStart: 79788 | |
Invalid ref from .code2:174 to .code1(__adddf3)+139412 | |
needsJT: true | |
from addr: 139412, exceptionInfoStart: 79788 | |
/opt/local/libexec/Retro68/bin/Rez -I/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes \ | |
--copy "out3.code.bin" \ | |
"/opt/local/libexec/Retro68/m68k-apple-macos/RIncludes/Retro68APPL.r" \ | |
-t "APPL" -c "????" \ | |
-o out3.bin --cc out3.APPL --cc out3.dsk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment