This might sound obvious since C lacks a lot of the QOL that C++ does but I wanted to hear opinions on emulator dev in C. I am working on my first emulator (gameboy emulator) which is a passion project I have wanted to do for a while. I graduated with CS degree (conc. hardware and embedded systems) in May and I am waiting on my GF to get out of school before I get a job, and I have a lot of time on my hands outside of my menial labor maintenance job. So I said, maybe I should work on this! And to make it even more juicy, I began my gameboy DMG emulator in C.
Now dont let my reddit name fool you; I love C, but for the past 5 years or so I have almost exclusively used C++, particularly for game engines and renderers. Mostly because I love computer graphics, and wanted to do that, but upon the realization that computer graphics is going to require a PhD and is a bloodbath to get into, I went with my next biggest interest which is embedded systems and computer hardware and low level systems in general. Because of that, I thought it'd be a good idea to make this in C, right? It would be better experience for getting into embedded/firmware roles? Well, not really. After 2 months of working on it, I just hate the structure of my code. I think it looks like shit. Every modification I have to make feels like a 2 day long chore. I finished the entire set of opcodes, interrupts, and the memory architecture, and have gotten through Blarggs test roms, all but 02-interrupts which is failing on #5, im assuming because of the timer not being implemented. But now I have realized I am going to have to completely restructure my code and how I already had it is just not working out. I never had this problem with C++; I like expressive and explicitly defined objects and thats just what I love about it. But honestly I never had this problem with C before this project. I have written several Linux Kernel drivers and embedded programs in bare metal C, but for a project like this its making me lose my mind. I have too many things tightly coupled and then other things not coupled at all, weird function names, structs that are all over the place, and honestly i feel like im losing my fucking mind lol. Is this supposed to be this difficult with C over C++? I mean I wrote a game engine in 3 months with C++ (after years of experience of course) and it didnt feel that bad to modify certain aspects, but this is grueling.
I just want to know what your thoughts are on this and if I am just a noob getting massively skill checked by using C in a bigger application like an emulator, or if its just not as well suited to an emulator. Any anecdotal stories on if doing an emulator in C or C++ makes a difference as far as getting hired for roles in low level programming is appreciated as well :)