I am not really experienced in Ada, so I would like some feedback and see if this code can be improved.
Hi Mekalu,
since you are asking for feedback, here is some. It is meant to be useful to you, so do not take it personally!
- Why do you distinguish the x86 build and the arm64 one? I saw that in your
.gpr
file you had no distinction between the two builds. If you do not have a specific reason to make them distinct, then do not have a build flag that does nothing If what you want is to select a different compiler when building, GPRbuild has a specific flag for that:--compiler-subst=lang,tool
, see 3. Building with GPRbuild — GPR Tools User's Guide 26.0w documentation - I would recommend that you create a specific package just for the Jack2 binding and then
with
that newly created package in your main program file. That separates the binding of a library and the actual application code.
Best regards,
Fer
Hi, thank you for feedback.
-
I did not know there was a specific flag might be useful in the future, although it does not change much for now, the reasoning was, I code on multiple computers throughout the week and I am using the same environment on them. I just found it easier to do it this way.
-
Yeah, that would be cleaner, I was just using this to test how to interface with Jack API and didn’t bother much.
1 Like