2001-06-07 04:29:01 +08:00
|
|
|
implementation
|
|
|
|
|
|
|
|
; Bytecode gets a constant pool block, that constains:
|
|
|
|
; type plane: int(int)
|
|
|
|
|
|
|
|
int "main"(int %argc) ; TODO: , sbyte **argv, sbyte **envp)
|
|
|
|
begin
|
2001-10-03 22:50:12 +08:00
|
|
|
%retval = call int (int) *%test(int %argc)
|
2001-06-07 04:29:01 +08:00
|
|
|
%two = add int %retval, %retval
|
|
|
|
ret int %two
|
|
|
|
end
|
|
|
|
|
|
|
|
int "test"(int %i0)
|
|
|
|
begin
|
|
|
|
ret int %i0
|
|
|
|
end
|