Explorar o código

+ as-macos for using as from Retro68

florian hai 7 meses
pai
achega
bc3b68ae7e
Modificáronse 3 ficheiros con 18 adicións e 0 borrados
  1. 1 0
      compiler/aggas.pas
  2. 16 0
      compiler/ppcgen/agppcgas.pas
  3. 1 0
      compiler/systems.inc

+ 1 - 0
compiler/aggas.pas

@@ -560,6 +560,7 @@ implementation
              if (atype in [sec_stub]) then
                writer.AsmWrite('.section ');
            end;
+         system_powerpc_macosclassic,
          system_wasm32_wasi,
          system_wasm32_embedded:
            begin

+ 16 - 0
compiler/ppcgen/agppcgas.pas

@@ -653,6 +653,21 @@ unit agppcgas;
          dollarsign: '$';
        );
 
+    as_ppc_gas_macosclassic_info : tasminfo =
+       (
+         id     : as_powerpc_gas_macosclassic;
+
+         idtxt  : 'AS-MACOS';
+         asmbin : 'as';
+         asmcmd: '-o $OBJ $EXTRAOPT $ARCH $ASM';
+         supported_targets : [system_powerpc_macosclassic];
+         flags : [af_needar,af_smartlink_sections];
+         labelprefix : '.L';
+         labelmaxlen : -1;
+         comment : '# ';
+         dollarsign: '$';
+       );
+
     as_ppc_gas_legacy_info : tasminfo =
        (
          id     : as_powerpc_gas_legacy;
@@ -750,6 +765,7 @@ unit agppcgas;
 
 begin
   RegisterAssembler(as_ppc_gas_info,TPPCGNUAssembler);
+  RegisterAssembler(as_ppc_gas_macosclassic_info,TPPCGNUAssembler);
   RegisterAssembler(as_ppc_gas_legacy_info,TPPCGNUAssembler);
   RegisterAssembler(as_ppc_gas_darwin_powerpc_info,TPPCAppleGNUAssembler);
   RegisterAssembler(as_ppc_clang_darwin_info,TPPCAppleGNUAssembler);

+ 1 - 0
compiler/systems.inc

@@ -262,6 +262,7 @@
              ,as_i8086_nasm
              ,as_i8086_nasmobj
              ,as_gas_powerpc_xcoff
+             ,as_powerpc_gas_macosclassic
              ,as_arm_elf32
              ,as_i8086_omf
              ,as_clang_asdarwin        { machine code assembler in Darwin as style assembled by clang }