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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/18/03 17:45
Read: times


 
#45873 - RE: Custom compiler
Responding to: ???'s previous message
That's an interesting problem, but I don't know of any ready-made 8052 'C' compilers that let you "opt out" of certain instructions. I would think that it'd be extremely hard to code a compiler that compiled 'C' code into assembly language without knowing beforehand what instructions were actually available.

It would be interesting, though, to tell such a compiler that it could only use the ANL, ORL, and XRL instructions and see if it could come up with a way to compile your 'C' program using just those instructions. The questions of the day would be: 1) How many megabytes would your resulting code be? 2) Would the process finish before or after smoke started coming out of your CPU? :)

Sorry, I don't have any useful answer but the question itself is certainly interesting. Like they say: "I don't have a solution, but I certainly admire the problem."

Regards,
Craig Steiner


List of 10 messages in thread
TopicAuthorDate
Custom compiler            01/01/70 00:00      
   RE: Custom compiler            01/01/70 00:00      
      RE: Custom compiler            01/01/70 00:00      
   RE: Custom compiler            01/01/70 00:00      
      RE: Custom compiler            01/01/70 00:00      
   RE: Custom compiler            01/01/70 00:00      
   RE: Custom compiler            01/01/70 00:00      
   RE: Custom compiler            01/01/70 00:00      
   RE: Custom compiler            01/01/70 00:00      
      RE: Custom compiler            01/01/70 00:00      

Back to Subject List