Problems porting c / C ++ code to VxWorks

I need to migrate a c / C ++ database that already supports Linux / Mac to VxWorks. I am new to VxWorks. Could you tell me what possible problems may arise?

+3
source share
4 answers

We recently did the opposite conversion — we ported the code from a PowerPC computer running VxWorks to an Intel Linux system. I do not remember to hit many snags, how much the differences between operating systems. Obviously, any call to an OS-specific API needs to change, and we will not make extensive use of these functions.

, PowerPC Intel. PowerPC - , Intel - . C , , . , . #pragma GCC, (#pragma reverse_bitfields).

+3

VxWorks, , . , , , - , . , Linux. , , , , Linux.

:

  • vxworks ,
  • ; , .
  • TSR ( ); , TSR,
+2

, VxWorks, . , VxWorks, pthreads, mutex, unix.

+1

, , : linux api ? , Linux ?

Middle, endianness , , .

0

Source: https://habr.com/ru/post/1710095/


All Articles