@Wilzax@lemmy.world
link
fedilink
English
685d

Your game will actually likely be more efficient if written in C. The gcc compiler has become ridiculously optimized and probably knows more tricks than you do.

Especially these days. Current-gen x86 architecture has all kinds of insane optimizations and special instruction sets that the Pentium I never had (e.g. SSE). You really do need a higher-level compiler at your back to make the most of it these days. And even then, there are cases where you have to resort to inline ASM or processor-specific intrinsics to optimize to the level that Roller Coaster Tycoon is/was. (original system specs)

@Valmond@lemmy.world
link
fedilink
English
105d

Yep but not if you write sloppy C code. Gotta keep those nuts and bolts tight!

@Wilzax@lemmy.world
link
fedilink
English
185d

If you’re writing sloppy C code your assembly code probably won’t work either

Create a post

Vintage gaming community.

Rules:

  1. Be kind.
  2. No spam or soliciting for money.
  3. No racism or other bigotry allowed.
  4. Obviously nothing illegal.

If you see these please report them.

  • 1 user online
  • 31 users / day
  • 82 users / week
  • 253 users / month
  • 577 users / 6 months
  • 1 subscriber
  • 596 Posts
  • 3.08K Comments
  • Modlog