dailey@frith.uucp (Chris Dailey) (11/14/90)
I have a program that I'm writing for in standard ANSI C++ on the Suns at school. I do not have access to a C++ compiler for the Amiga, and would like to run it on the Amiga some day when it's done. Using the -S switch with g++, I can get the assembly code. The question remains whether the format of g++'s 68000 assembly is the same as that of any Amiga assembler. I'll include a sample, cut down to about 80 lines (from ~1000). Thanks in advance. While we're at it, I'll redirect follow-ups to myself and post a summary to save bandwidth. --------------------------[ Here it is. ]----------------------------- #NO_APP gcc_compiled.: .text .even LC0: .double 0r0.00000000000000000000e+00 LC1: .ascii "invalid index\0" .even _type$PCc__C6String: link a6,#0 movel a2,sp@- movel a6@(8),a2 clrl sp@- movel a2@,d0 addql #4,d0 jra L1538 L1538: movel d0,sp@- jbsr _str__FPCci addqw #8,sp jra L1537 L1537: movel a6@(-4),a2 unlk a6 rts .globl _outputfile .data .even _outputfile: .skip 24 .globl _status .even _status: .skip 40 .globl _parser .even _parser: .skip 8 .globl _inputfile .even _inputfile: .skip 20 .globl _flag2_file .even _flag2_file: .skip 24 .globl _err .even _err: .skip 12 .text LC2: .ascii "flag2file\0" LC3: .ascii "Too few arguments.\12\0" [... LC4 through LC9 deleted ...] LC10: .ascii "ERROR: File on opening file '%s'.\12\0" .even .globl _main _main: link a6,#-8 moveml #0x2020,sp@- jbsr ___main movel d0,d0 moveq #1,d1 movel d1,a6@(-4) subql #8,sp lea sp@(4),a2 movel #LC2,d2 pea -1:w ------------------------[ remainder deleted ]---------------------------- -- Chris Dailey dailey@(frith.egr|cpsin.cps).msu.edu BRD += DDR; DDR = NULL; num_countries --;