Portability issues

28 views
Skip to first unread message

Staon

unread,
Mar 24, 2010, 7:43:40 PM3/24/10
to Syx general discussion
Hi,

I tried to port the Syx to a pre-historic operating system QNX4. I was
very suprised because the work was successful, although our compiler
(Watcom 10.6) was very very old and it didn't support much of today
usual features (i.e. 64bit integers). In the point of view of
portability you have done extremely good job.

However, I observed two issues during the porting:

1) In most of code using of 64bit integeres (long long) is closed
between the #ifdef an #endif directives. But in the syx-profile.h and
syx-profile.c files it's used directly even though the profiling is
disabled. When compiler doesn't work with the long long, the
compilation fails.

2) The whole system lays on 4B structure alignment, because some info
is coded into least two bits. However, it's never documented and it's
not checked in the "configure" phase. The structure SyxObject has
exactly 19B and when it's not aligned the program mysteriously
crashes.

I hope that these observations help you.

Ondra Starek

Reply all
Reply to author
Forward
0 new messages