Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@PrivateGER It's code I inherited for one lighting controller. It is pretty old now (development log starts in 2008). It is actually full of such gems.
-
@Cyanide It's specialty regarding to CPU's 16-bit architecture and address space bigger than 16-bit. Therefore you end with near and far jumps and you can force compiler to use one of them (and near is obviously faster for access since it is in CPU native address space). Although widely used on those architectures, near and far are not part of C standard.
-
Yup, let's call from inline asm without being aware of compiler-generated preamble
Enjoy your stack issues
Related Rants
Well, sh*t.
There is special hell for people using GOTO in C and even more special hell for people using it in *this* context.
rant
c
embedded
goto
special hell