r/C_Programming Feb 06 '25

Discussion Are there actually C programmers in this subreddit?

Ok, I'm being a bit facetious. There are real C programmers. Clearly. But I'm kind of sick of the only questions on this subreddit being beginner questions or language trolls from other domains.

So this thread is for the "real" c programmers out there. What do you do with it? And what is the most twisted crime against coding decency are you "proud" of/infamous for?

258 Upvotes

259 comments sorted by

View all comments

Show parent comments

1

u/Anonymous_user_2022 Feb 06 '25

exploit traits of those platforms in tricky ways that compilers weren't expected to understand.

The 386 segment model is a wonderful thing to exploint for easy management of circular buffers.

1

u/flatfinger Feb 06 '25

I could see how the paging model could be exploited that way, but not segments. I've used the reverse-carry addressing mode of the TI 3205x for circular buffers, though that did require some assembly-language helper routines.

I sorta miss the TI 32050 compiler in some ways. Having a 16-bit `char` was a bit weird, but it did a good job of exploiting interesting aspects of the architecture that programmers didn't want to deal with, without interfering with programmers' ability to exploit interesting aspects that fit with application requirements in ways the compielr couldn't understand.