Live data from Hacker News

Comp.lang.c Frequently Asked Questions

c-faq.com

1–10 of 56 posts

Re: Comp.lang.c Frequently Asked Questions

#5

1.1. How should I decide which integer type to use? Programmer: Hmmm, I think these three should be shorts and these 10 can fit in chars. Modern compiler: Fuck that, you're all 32-bits. I ain't got time for unaligned memory access...

Modern compilers generally prefer register-sized data.

Re: Comp.lang.c Frequently Asked Questions

#6

1.1. How should I decide which integer type to use? Programmer: Hmmm, I think these three should be shorts and these 10 can fit in chars. Modern compiler: Fuck that, you're all 32-bits. I ain't got time for unaligned memory access...

Modern compilers generally prefer register-sized data.

Ah thanks, that's what I was thinking. But somehow I got caught up in unaligned cacheline accesses, which are much larger than 32-bits. It's early where I am. :)
Post reply on HN