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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/21/02 15:24
Read: times


 
#18940 - typedef & optimisation?
In the book "TCP/IP Lean" [1], the author states:

"I have used #define in preference to typedef because compilers use better optimisation strategies for their native data types."

Is this true of the Keil C51 compiler?

ie, will C51 generate better-optimised code from source using
#define U8 unsigned char
than from source using
typedef unsigned char U8


[1] Bentham, J.
"TCP/IP Lean"
CMP Books, 2000
ISBN 1-929629-11-7
http://www.iosoft.co.uk/tcplean.htm

List of 21 messages in thread
TopicAuthorDate
typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation? Derek            01/01/70 00:00      
RE: typedef & optimisation? Peter            01/01/70 00:00      
RE: typedef & optimisation Franc            01/01/70 00:00      
RE: typedef & optimisation? Erik            01/01/70 00:00      
RE: typedef & optimisation? Peter            01/01/70 00:00      
RE: typedef & optimisation? Peter/Erik            01/01/70 00:00      
RE: typedef & optimisation? Peter/Erik            01/01/70 00:00      
RE: typedef & optimisation? Peter/Erik            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      

Back to Subject List