Skip to content

Assessment of the difficulty in porting CPU architecture for fluidsynth #1277

Closed Answered by derselbst
wangyuliu asked this question in Q&A
Discussion options

You must be logged in to vote

Based on scanning tools, the porting complexity is determined to be simple, with a small amount of code related to the CPU architecture in the project. Is this assessment accurate?

Correct. There is a bit x87 FPU related code in the project, which is solely used for debugging purposes and not compiled by default (cf. cmake options enable-fpe-check and enable-trap-on-fpe).

I don't think there is any "porting" in terms of changing the source code necessary at all. You just need to compile fluidsynth for a different target architecture. When doing so, you need to make sure that the intrinsic integer types are of same width as for x86 by default. I.e.:

char: 1 byte
short: 2 bytes
int: 4 bytes

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by derselbst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants