Are Struct slow ?

Other misc things
Post Reply
norecess
Member
Posts: 73
Joined: Thu Mar 20, 2008 12:58 am

Are Struct slow ?

Post by norecess »

Hep,

Question : what are the pros and cons about using C structures with z88dk ?
cf. is it slower that stand-alone variables to access them ?

Thank you
User avatar
dom
Well known member
Posts: 2091
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

If they're pointers to structs then there's that extra level of indirection which will be slower, if they're flat then there shouldn't be a difference.
Post Reply