This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i386 and asm jumping



>>>What's wrong with computed goto in this situation?
>
>Lots of machines have interesting branch instructions which you may want
>to generate for some particular reason. After all if you take the above
>attitude, *any* inserted asm can always be replaced by C code :-)

Jumps in asm statements will create problems since the optimizers have
no knowledge that there is a possible change in flow caused by the asm
statement, and hence will not have an accurate flow diagram of the
function.  From there its all downhill.

-- 
Peter Barada                                   Peter.Barada@motorola.com
Wizard                                         781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola)   781-270-0193 (fax)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]