Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portability: Early SGS and PCC compiler errors #114

Open
johnsonjh opened this issue Apr 19, 2021 · 0 comments
Open

Portability: Early SGS and PCC compiler errors #114

johnsonjh opened this issue Apr 19, 2021 · 0 comments
Assignees
Labels
com80 COM/COM80/8080/Z80 emulation related portability Something isn't working across platforms

Comments

@johnsonjh
Copy link
Owner

Example: Motorola SYSTEM V/68, Release 2, Version 1.0, VME/10 68010:

$ cc -c -O -DSYSV -DRUNOPTS -DUSEDIRENT ccpu.c
"ccpu.c", line 2142: compiler error: switch table overflow

Other systems using AT&T System V SGS compiler derivatives have the same trouble (e.g. Multics C).

On these compilers, the maximum switch table size is a preprocessor defintion set at compile time, so not trivial to patch.

Possible solutions (besides updating the compiler):

  1. Add #ifdef to leave out undocumented instructions.
  2. Convert switch/case to if/else.
@johnsonjh johnsonjh added portability Something isn't working across platforms com80 COM/COM80/8080/Z80 emulation related labels Apr 19, 2021
@johnsonjh johnsonjh self-assigned this Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
com80 COM/COM80/8080/Z80 emulation related portability Something isn't working across platforms
Projects
None yet
Development

No branches or pull requests

1 participant