If we have this mapped to a variable-member in a record/rep-spec can we simply assign to it or do we have to do additional mathematics to get the delta of the LSB's to be correct?
If we have this mapped to a variable-member in a record/rep-spec can we simply assign to it or do we have to do additional mathematics to get the delta of the LSB's to be correct?
The generated C has exactly the same semantics as the original Ada source code. You don't have to do any manual fixups.
Appropriate padding or packing is specified to ensure the generated C struct matches the specified 'size. For "use at" (i.e. for X'Address use ...) a pointer is used in the C code, with the pointer initialized to the specified address.
Appropriate C bit-field specifications are include in the C struct definitions. There is a "config" file which can be used to tailor the translator to unusual characteristics of the target C compiler, though the default "config" file works in most ...
A single Ada source file can have any kind of code within it, though some compilers are more restrictive than that and use specific naming conventions (such as Rational’s .1.ada and .2.ada, or AdaCore’s .ads and .adb). Ada-C/C++ Changer is designed ...
AdaChanger is like a compiler. It requires the "specs" for any package that is "with"ed. It requires the bodies for any generic that is instantiated. It can work on a piece of a program, but that piece must at least include all of the package "spec"s ...