Yuri
2011-Feb-02 20:06 UTC
[LLVMdev] Is llvm correct outputting the same data layout on Solaris i386 as on Linux i386 ?
Solaris-i386 isn't in the list of supported configurations. I have built llvm and am trying to run some code in JIT on Solaris. Same code that runs fine on linux crashes during some external fun function invokation from JIT. My first suspicion is ABI. clang on Solaris outputs the same data layout string as on linux. Is Solaris ABI really the same on i386? Yuri
Anton Korobeynikov
2011-Feb-02 20:40 UTC
[LLVMdev] Is llvm correct outputting the same data layout on Solaris i386 as on Linux i386 ?
> Is Solaris ABI really the same on i386?Probably not. Also, note that the problem is not ABI alone, the layouts of different C stdlib structs might be different (e.g. FILE), etc. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Yuri
2011-Feb-02 21:01 UTC
[LLVMdev] Is llvm correct outputting the same data layout on Solaris i386 as on Linux i386 ?
On 02/02/2011 12:40, Anton Korobeynikov wrote:>> Is Solaris ABI really the same on i386? >> > Probably not. Also, note that the problem is not ABI alone, the > layouts of different C stdlib structs might be different (e.g. FILE), > etc. > >So how do I figure out what is the correct layout string would be on Solaris-i386? stdlib structures? This depends on the calling code being aware of this. It its C++ code its supposed to know about this by itself from headers. Yuri
Maybe Matching Threads
- [LLVMdev] Is llvm correct outputting the same data layout on Solaris i386 as on Linux i386 ?
- [LLVMdev] Is llvm correct outputting the same data layout on Solaris i386 as on Linux i386 ?
- [LLVMdev] 2.5 Pre-release2 available for testing
- [LLVMdev] 2.5 Pre-release2 available for testing
- [LLVMdev] Object layout bug for C++ derived class with long long integer