-=> Quoting Jan Wagemakers to Tom Torfs <=-
JW> time_t time(time_t *t);
JW> If t is non null, the return value is also stored
JW> in the
JW> memory pointed to by t.
JW> So, the following works perfect :-)
JW> /* (tijd.s)
JW> .globl main
JW> main:
JW> pushl $0
JW> call time
JW> addl $4,%esp
JW> But still I don't understand :-( why it doesn't work when I do
JW> something like :
JW> pushl $currenttime
I don't know AT&T syntax but aren't you pushing a value here?
You have to push a pointer, ie, the address of the memory-location containing
the time-structure.
_ Greetings,
|_)anny, LIVR!
--- FEddi 0.9pl7 via ifcico
---------------
* Origin: Powdered ToastMan * Oostende * Debian/GNU Linux (2:291/1805.666)
|