RE: help with c++ if test

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 9 Feb 2011 15:03:00 -0500

Sort of. C switch statements are compiled into jump tables, but not xlat 
instructions.

Just do a -s on gcc, and take a look.

Take car,e
Sina

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Lex
Sent: Wednesday, February 09, 2011 3:01 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: help with c++ if test

09.02.2011 21:45, Littlefield, Tyler пишет:
> Wow, that's sweet. so essentially you just have the pointers to the 
> functions or points to jump to, spaced out. so you would just xlat to 
> the number you want to compare against, then jump to that. for things 
> like ranges, you'd just repeat the pointer, makes sense.

Actually, C switch statement is compiled to something like that too.


Lex
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: