trolldbois / ctypeslib

Generate python ctypes classes from C headers. Requires LLVM clang
http://trolldbois.blogspot.com/search?q=ctypeslib
MIT License
218 stars 61 forks source link

What's all about WORD_SIZE, POINTER_SIZE and LONGDOUBLE_SIZE? #102

Closed occoder closed 3 years ago

occoder commented 3 years ago

Using the same instance mentioned in #101 , the output file header lines contains following content

# WORD_SIZE is: 8
# POINTER_SIZE is: 8
# LONGDOUBLE_SIZE is: 16

Should I worry to set these parameters properly before executing clang2py? If yes, how? Thanks for any hint.

occoder commented 3 years ago

Already figured this out. The target needs to be customized according to the specific hardware setup.

  -t TARGET, --target TARGET
                        target architecture (default: x86_64-Linux)