Support #252

Feature #328: Enduro/X Version 6.0 master task

Implement proper alignment handling for UBF

Added by Madars Vitolins 11 months ago. Updated about 2 months ago.

Status:ClosedStart date:11/20/2017
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

We get bus-error on sparc platform. For un-aligned data access.

History

#1 Updated by Madars Vitolins 11 months ago

One way to perform this would:

- the BFLDID should consist of two integers.
- in header before ending BFLDID we shall have "long" field to pull in 64bit alignment.
- All fields in UBF, shall be in size of modulus 8
- The long fields and double fields will have BFLDID, integer (for 32bit adding to address) and the long/float by it self.

All this above will ensure 8 byte alignment.

#2 Updated by Madars Vitolins 11 months ago

Another option BFLDID use as 64bit long. And align all fields to 8.
For user api keep origianl BFLDID as 32bit, but internally cast it to 64bit...

So this will ensure all alignment to 8 bytes.

#4 Updated by Madars Vitolins about 2 months ago

  • Parent task set to #328

#5 Updated by Madars Vitolins about 2 months ago

The other option would be to add temp field after BFLDID, type int, that shall make the next field to be aligned by 8.

#6 Updated by Madars Vitolins about 2 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100

#7 Updated by Madars Vitolins about 2 months ago

  • Status changed from In Progress to Resolved

#8 Updated by Madars Vitolins about 2 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF