comp.lang.ada
 help / color / mirror / Atom feed
* pragma import => pointer in mapping table ?
@ 2013-11-05  9:49 wkernow
  2013-11-05 12:56 ` Simon Wright
  2013-11-08 18:52 ` Per Sandberg
  0 siblings, 2 replies; 6+ messages in thread
From: wkernow @ 2013-11-05  9:49 UTC (permalink / raw)


Hello,

This is the first time I write in a newsgroup.

In my code, I have : 

pragma import (C, X, "varX_C");

with everything that I need before (pragma convention, declaration of varX, "X_C" comes from a C file) 

Code is ok but my problem is about mapping file. Mapping table is a file which identifies each variable by an address. This file come from toolchain (varX 0x01891234)

In deed, I saw that all variables X derived from a "pragma import" are considered as pointers in mapping table whereas variables type of varX are not access types (basic types).

My hypothesis is that pragma import create an access to C data "varX_C" from a exterior point of view of ada code (so by mapping table).

To confirm my hypothesis, 2 questions : 
1) Are you ok ?
2) Is possible to define an option in toolchain in order to define adressing mode (for addresses in mapping file from pragma import) in direct mode (on ADA data) instead of indirect mode (on C data). Or is it a default option ?

if I'm wrong or you don't understand :
3) In genaral, I don't understand how a basic variable (type BOOLEAN) in ADA code can be considered as a pointer to a BOOLEAN in an mapping file derived from toolchain ?

Thank you

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Pragma import => pointer in mapping table ?
@ 2013-11-05  9:23 wkernow
  0 siblings, 0 replies; 6+ messages in thread
From: wkernow @ 2013-11-05  9:23 UTC (permalink / raw)


Hello,

This is the first time I post in newsgroup.

In my code, I hamon code j'ai un :

pragma import (C, X, "X");

avec tout ce qu'il faut avant (pragma convention, déclaration de X et "X" est tiré d'un fichier C)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-08 18:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-05  9:49 pragma import => pointer in mapping table ? wkernow
2013-11-05 12:56 ` Simon Wright
2013-11-05 18:27   ` wkernow
2013-11-05 21:12     ` Simon Wright
2013-11-08 18:52 ` Per Sandberg
  -- strict thread matches above, loose matches on Subject: below --
2013-11-05  9:23 Pragma " wkernow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox