让它看起来像tasm生成的列表)
答案 0 :(得分:3)
使用'-S'调用'gnatmake'作为参数之一:
$ cat hello_world.adb
with Ada.Text_IO;
procedure Hello_World is
begin
Ada.Text_IO.Put_Line ("Hello world!");
end Hello_World;
$ gnatmake -S hello_world
[...]
$ head hello_world.s
.file "hello_world.adb"
.section .rodata
.LC1:
.ascii "Hello world!"
.align 4
.LC0:
.long 1
.long 12
.text
.globl _ada_hello_world
答案 1 :(得分:2)