Philipp Klaus Krause
Philipp Klaus Krause
If you have access to the original Padauk programmer (where are you located?), use an oscilloscope to see what happens when programming the PFS132?
There is a problem here though. The C backend expects arrays to be wrapped in structs. But by the C standard, the flexible array member has to be in the...
There is a proposal (N2083) to allow flexible array members in nested structs. I do not know how it has been received by the comittee. But even if embraced, it...
I have now removed the wrapping of arrays in structs. Both normal arrays and flexible array members seem to be fully working. Philipp
Hmm, so we need the current way of array handling for by-value semantics. But we need the one without wrapping for flexible array members. For arrays of size zero by-value...
Your test now passes. Philipp
Since I'm new to LLVM I'm not that familiar with LLVM bitcode semantics yet. But on the C side the presence of a flexible array member can affect the struct...
Considering your reservations on requiring C99: Are there any important target platforms that do not have a (mostly) ISO C99 compiler? What should be the minimum level of standard compliance...
> can you think of any way this might be broken? 1) The notation for flexible array members is array[], not array[0]. array[0] is a non-standard GCC extension (AFAIK also...
The problem happens for reading from an address just as for writing to an address. Philipp