Just as a point of comparison, here's an FM/AM modulated synth I wrote some years ago [0]. The version linked here is written in 250 lines of plain old C code with floating point arithmetic and not a single thought has given to performance (but it runs fast enough).
Originally, this synth was designed for a demoscene 4k intro, which was never finished. It was originally implemented with 16.16 fixed point arithmetic using legacy x86 assembly abusing one byte instruction encodings (e.g. using the AX part of RAX as the .16 fractional part). Some of the design decisions of the size-optimized hand-written assembly synth are still visible in the original code.
The original assembly implementation is buried somewhere deep in my hard disk.
[0] https://github.com/rikusalminen/jamtoysynth/blob/master/src/...