Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to get the (CPU) stack adress ?

by Zaxo (Archbishop)
on Jan 15, 2002 at 14:22 UTC ( #138868=note: print w/replies, xml ) Need Help??


in reply to How to get the (CPU) stack address ?

Inline::ASM would be the best way I know.

#!/usr/src/perl -w use strict; use Inline ASM => 'DATA', AS => 'as', PROTO => {sptr => 'unsigned long()'}; print 0 | sptr(),$/; # ... __END__ __ASM__ .text .globl sptr sptr: movl %esp,%eax ret

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: How to get the (CPU) stack address ?
by arhuman (Vicar) on Jan 15, 2002 at 15:14 UTC
    Thanx for your answer !

    But I still hope for another solution,
    as I said in my initial post, pure Perl or standard module based solutions
    (if available) are most welcome !


    "Only Bad Coders Code Badly In Perl" (OBC2BIP)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://138868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-06-26 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?