Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the differences in the pointers in Tandem C and TAL?

differences pointers tal tandem
0
Posted

What are the differences in the pointers in Tandem C and TAL?

0

(A) Differences between TAL and C pointers include the following: TAL structure pointers can point to a byte or word address. C structure pointers always point to a word address. To pass a C structure pointer to a TAL routine that expects a byte structure pointer, you must explicitly cast the C pointer to type char. TAL pointers are dereferenced implicitly. C pointers are usually dereferenced explicitly. Small-memory-model C routines use 16-bit pointers only. Large-memory-model C routines use 32-bit pointers only, even if the pointers refer to the user data segment. In global structure declarations, you must specify _lowmem in the storage class of the declaration. If a TAL routine expects a 16-bit pointer, the C pointer you pass must refer to an object in user data space.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.