3 ms·
I wonder if there are any open source emulators out there which are compliant with a strict limit on cyclomatic complexity. Specifically given a common pattern
by captainbland 3y ago
I wonder if there are any open source emulators out there which are compliant with a strict limit on cyclomatic complexity. Specifically given a common pattern is to use a large switch/case to map from instructions which usually compiles to a jump table which is performant, fairly clear/maps nicely to architecture docs but falls foul to normal cyclomatic complexity rules.
Edit: project concept: Enterprise Gameboy.
- almostnormal 3y ago> Specifically given a common pattern is to use a large switch/case to map from instructions which usually compiles to a jump table [...] Work-around: Implement the jump table directly, e.g., array of function pointers or whatever works in the language of choice.