Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/12/06 14:29
Read: times


 
#129342 - Heh.
Responding to: ???'s previous message
Sometimes inline assembler is because assembler is required and some idiot has declared that all code must be C (seen it).

Yikes.

A major cellphone company (name witheld) has the rule of "No global variables under any circumstances". So, in main() there is an enomous structure, the pointer to which is carried all over the place.

Of course, this can be "improved" - by making the structure static. Of course, make the pointer static, too. Call it a "handle" to add to the confusion.

Taken from the guide to writing unmaintainable code:

http://thc.org/root/phun/unmaintain.html

List of 22 messages in thread
TopicAuthorDate
Help me for inline assembly            01/01/70 00:00      
   wait a min!            01/01/70 00:00      
      Explain!            01/01/70 00:00      
         Help me for inline assembly            01/01/70 00:00      
            How 'C' systems start.            01/01/70 00:00      
      how to link the assembled file            01/01/70 00:00      
         You still haven't said            01/01/70 00:00      
         RTFM            01/01/70 00:00      
   Keil C51 and the SRC directive            01/01/70 00:00      
   Before you go there...            01/01/70 00:00      
      sometimes inline assembler is because            01/01/70 00:00      
         Heh.            01/01/70 00:00      
      absolutly!            01/01/70 00:00      
      To Access Stack            01/01/70 00:00      
         Why ?            01/01/70 00:00      
            not necessarily            01/01/70 00:00      
               That's my line!            01/01/70 00:00      
               Still ...            01/01/70 00:00      
                  I think ...            01/01/70 00:00      
                  The only useful information on the stack ...            01/01/70 00:00      
                     Yes, but...            01/01/70 00:00      
                        Not want, but have to            01/01/70 00:00      

Back to Subject List