OpenAADL / polyorb-hi-ada

PolyORB-HI/Ada runtime for Ocarina
http://www.openaadl.org
Other
9 stars 4 forks source link

Support for large messages #5

Closed yoogx closed 7 years ago

yoogx commented 8 years ago

In its current implementation, PolyORB-HI/Ada is limited to packed of size < 64KiB. This should be changed to 4GiB

maxime-esa commented 8 years ago

In taste there are two places that relate to this limitation:

1) The DataView.aadl files (generated by DMT) contain:

DATA IMPLEMENTATION HugeMsg_Buffer.impl
    -- Buffer to hold a marshalled data of type HugeMsg
SUBCOMPONENTS
    Buffer : data HugeMsg_Buffer_Max.impl;
    Length : data Base_Types::Unsigned_16;
PROPERTIES

2) And the wrapper code in Ada (generated by buildsupport) has a hardcoded use of Unsigned_16:

Value.OUTPORT_image_DATA.Length := PolyORB_HI_Generated.Types.Unsigned_16 (IN_nice_picture_size);

Let me know if/when we should change these.

yoogx commented 8 years ago

Solution on your end is to change Length to be Unsigned_32, I'll handle the other parts in the runtime

maxime-esa commented 8 years ago

Ok the changes are committed on DMT and buildsupport sides

yoogx commented 7 years ago

Implementation of this ticket move to openaadl/ocarina#99