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 > Maybe a newbie ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 17 Topic 3795 of 4136
Post > Topic >>

Maybe a newbie question..

by sbi82@[EMAIL PROTECTED] Mar 3, 2008 at 01:07 AM

Hi all, maybe it's a very newbie question.
What is the difference (if there is any) in performance between these
solutions?

I've to choose 2 words and I'm comparing the IF ELSE cases or a table;
here an example:

CREATE MYTABLE
' WORD1 , ' WORD2 ,


SEL_WORD VAR1 @[EMAIL PROTECTED]
 2* MYTABLE + @[EMAIL PROTECTED]
 EXECUTE ;

or


SEL_WORD VAR1 @[EMAIL PROTECTED]
 0= IF WORD1 ELSE WORD2 THEN ;

I'm working on swiftX forth for an HC12B32 microcontroller; I've seen
that the first solution (the one using a table) uses 3 bytes more than
the second solution.
But the question is: what is the fastest solution? Is there any
difference? Because the table is very useful and I like a lot using a
table.

Thanks


--
Ciao da Stefano
 




 17 Posts in Topic:
Maybe a newbie question..
sbi82@[EMAIL PROTECTED]   2008-03-03 01:07:27 
Re: Maybe a newbie question..
Jonah Thomas <jethomas  2008-03-03 06:08:41 
Re: Maybe a newbie question..
sbi82 <stefanobiz@[EMA  2008-03-03 13:09:18 
Re: Maybe a newbie question..
Jonah Thomas <jethomas  2008-03-03 06:20:49 
Re: Maybe a newbie question..
Jonah Thomas <jethomas  2008-03-03 07:53:00 
Re: Maybe a newbie question..
sbi82 <stefanobiz@[EMA  2008-03-03 19:29:49 
Re: Maybe a newbie question..
Brad Eckert <nospaambr  2008-03-03 08:34:37 
Re: Maybe a newbie question..
sbi82 <stefanobiz@[EMA  2008-03-03 19:27:07 
Re: Maybe a newbie question..
Elizabeth D Rather <er  2008-03-03 09:07:37 
Re: Maybe a newbie question..
sbi82 <stefanobiz@[EMA  2008-03-03 20:39:28 
Re: Maybe a newbie question..
Elizabeth D Rather <er  2008-03-03 10:20:50 
Re: Maybe a newbie question..
Jonah Thomas <jethomas  2008-03-03 14:38:38 
Re: Maybe a newbie question..
sbi82 <stefanobiz@[EMA  2008-03-03 20:43:49 
Re: Maybe a newbie question..
stephenXXX@[EMAIL PROTECT  2008-03-03 15:48:41 
Re: Maybe a newbie question..
Bruce McFarling <agila  2008-03-03 15:54:59 
Re: Maybe a newbie question..
m_l_g3@[EMAIL PROTECTED]   2008-03-05 11:25:00 
Re: Maybe a newbie question..
Elizabeth D Rather <er  2008-03-24 10:57:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed Jul 9 5:54:22 CDT 2008.