website/content/critique2.md
2024-07-12 22:48:26 -04:00

764 B

title description date draft
How is C useful for for understanding how computers work? 2024-01-30 true

Read this first https://irreal.org/blog/?p=12304 I'm going to be critiquing it and you should read it and understand what it says first so you can make fun of me for misreading it.

  • It's not verilog
  • Most C programs written by beginners aren't operating systems
  • Most C programs written by beginners aren't using syscalls directly
  • C doesn't map cleanly to asm due to UB and compiler optimizations and also because of compiler optimizations
// what x86 asm does this translate to and is it really a clean mapping?
int example(){
    int a = 5;
    int b = something();
    return a;
}