Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions on the machine check #14

Closed
GoogleCodeExporter opened this issue May 7, 2015 · 3 comments
Closed

Questions on the machine check #14

GoogleCodeExporter opened this issue May 7, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

1. Is the "machine check code"(What I mean is listed below) of linux used 
for byte boundary alignment?
    _machine = machine()
    if _machine == 'i686':
If another cpu architechure was used such as ARM or PowerPC, that is I am 
going to port the fusepy to another platform, what I need to do is to fix 
the byte boundary alignment?

Thanks.

Original issue reported on code.google.com by minggang...@gmail.com on 10 Jul 2009 at 7:32

@GoogleCodeExporter
Copy link
Author

_machine is used to differentiate between 32bit and 64bit Linux, since they 
have differences in their stat 
structures. If you want to port fusepy to ARM or PowerPC you need to see what 
differences exist in the sizes of 
the various types. Don't forget to add -D_FILE_OFFSET_BITS=64 when you are 
checking the headers:
    e.g. gcc -E -D_FILE_OFFSET_BITS=64 /usr/include/sys/stat.h

Original comment by verigak on 11 Jul 2009 at 12:58

@GoogleCodeExporter
Copy link
Author

Thanks, buddy.

Original comment by minggang...@gmail.com on 14 Jul 2009 at 2:29

@GoogleCodeExporter
Copy link
Author

Original comment by verigak on 31 Jul 2009 at 9:15

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant