Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Separated h...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 17 Topic 4006 of 4325
Post > Topic >>

Re: Separated headers

by "Maki" <veselic123@[EMAIL PROTECTED] > Apr 25, 2008 at 11:11 AM

>> ... to locate a word header when you separate
>> headers from code space,
> ...
>> i store an NFA pointer at CFA -4.
>> the trick is when you do headerless words this pointer has to be
>> cleared or it will point to bogus data!
>
> And when you write a decompiler, used in particular by the return
> stack dumping tool, there's a problem to find the boundaries on a
> nameless definition...
>
>
> :NONAME 0 0 ! ; CONSTANT foo
> :NONAME 1 . [ foo COMPILE, ] 2 . ; CONSTANT bar
> : tt 3 . [ bar COMPILE, ] 4 . ;
>
> tt -- of course,  an exception
> But nameless definitions are re****ted more or less correctly, that is,
> they are not considered a part of the last definition having a name:
>
> .SAVED-RSTACK
>
<snip>

> I maintain a list of nameless definitions in the name space:
>
> see :NONAME
> : :NONAME     donest CF, LASTCF ( IT ) <no-name>! ] link-noname !CSP
> RESET-LOCALS EXIT  ok[Dec]
>
> see link-noname
> : link-noname     NAMESPACE ALIGN ( /ALIGN ) HERE NONAME-LINK @[EMAIL PROTECTED]
 ,
> ( COMPILE, ) LASTCF ( IT ) , ( COMPILE, ) NONAME-LINK ! DATASPACE
> EXIT  ok[Dec]
>

Thanks for further clarifications. Idea is good but for now I plan just to

dump value if no header is found.

Regards,
Maki.
 




 17 Posts in Topic:
Separated headers
"Maki" <vese  2008-04-21 12:48:29 
Re: Separated headers
Alex McDonald <blog@[E  2008-04-21 05:30:01 
Re: Separated headers
"Maki" <vese  2008-04-21 20:39:04 
Re: Separated headers
Alex McDonald <blog@[E  2008-04-21 14:38:54 
Re: Separated headers
"Maki" <vese  2008-04-22 00:45:13 
Re: Separated headers
m_l_g3 <m_l_g3@[EMAIL   2008-04-21 07:38:58 
Re: Separated headers
Bruce McFarling <agila  2008-04-21 08:10:01 
Re: Separated headers
"Maki" <vese  2008-04-21 20:27:24 
Re: Separated headers
"Maki" <vese  2008-04-21 21:02:18 
Re: Separated headers
mark4 <i440r@[EMAIL PR  2008-04-21 19:54:54 
Re: Separated headers
"Maki" <vese  2008-04-22 09:33:23 
Re: Separated headers
m_l_g3 <m_l_g3@[EMAIL   2008-04-24 04:35:50 
Re: Separated headers
"Maki" <vese  2008-04-25 11:11:51 
Re: Separated headers
Albert van der Horst <  2008-04-22 18:49:34 
Re: Separated headers
"Mark W. Humphries&q  2008-04-28 03:10:28 
Re: Separated headers
Coos Haak <chforth@[EM  2008-04-28 20:24:51 
Re: Separated headers
"Mark W. Humphries&q  2008-04-28 16:25:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:41:53 CST 2008.