gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] gcl compiler problem


From: Jean-baptiste Couturier
Subject: [Gcl-devel] gcl compiler problem
Date: Tue, 04 Feb 2003 23:52:39 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

Hello,

Firtly, you must know that i'm newbie with gcl. (& I wish it's the good place to ask my question)

I try to make a platform dependant executable file using my lisp program but i've compilation error. Using "gcl -compile myprog" i obtain myprog.o (an elf32-i386 according to objdump) but i can't run it (bash: ./myprog.o: cannot execute binary file).

example:
test.lsp:
----------
(print 'hello)

(jb)prog >gcl -compile test Compiling test.lsp. End of Pass 1. End of Pass 2. OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
Finished compiling test.

(jb)prog >chmod u+x test.o && ./test.o
bash: ./test.o: cannot execute binary file

(jb)prog >objdump -d test.o

test.o:     format de fichier elf32-i386

Déassemblage de la section .text:

00000000 <init_code>:
  0:   55                      push   %ebp
  1:   89 e5                   mov    %esp,%ebp
  3:   83 ec 08                sub    $0x8,%esp
  6:   83 c4 f4                add    $0xfffffff4,%esp
  9:   68 00 00 00 00          push   $0x0
  e:   e8 fc ff ff ff          call   f <init_code+0xf>
13: c9 leave 14: c3 ret 15: 8d 76 00 lea 0x0(%esi),%esi


Any help appreciated.
Cheers!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]