Thanks
One issue with supporting gccgo on AIX is that the code which handles
the import statement needs to be able to open up object files and
archives in order to extract the export data. I wrote that code for
ELF; somebody would need to write it for XCOFF. It's conceptually
straightforward.
For good support for Go, somebody would need to port the split stack
support. It's not essential to have it, in that Go programs will run in
any case, but it's certainly better if it's available.
I don't really understand your second question.
It would also be feasible to port 6g/8g to AIX, but it would be harder.
Ian
> For good support for Go, somebody would need to port the split stack
> support. It's not essential to have it, in that Go programs will run in
> any case, but it's certainly better if it's available.
>
> I don't really understand your second question.
>
Basically, is any PPC assembly required or C code only?
> It would also be feasible to port 6g/8g to AIX, but it would be harder.
>
Eric Van Hensbergen wrote me about this option. But it would require "a
good understanding of PPC architecture" and I am afraid that is not my
cup of tea.
I guess I'll be waiting for others to do the heavy lifting if I ever
want to use Go code on AIX+PPC.
Thanks to you both.
John
>> One issue with supporting gccgo on AIX is that the code which handles
>> the import statement needs to be able to open up object files and
>> archives in order to extract the export data. I wrote that code for
>> ELF; somebody would need to write it for XCOFF. It's conceptually
>> straightforward.
> I guess I'll be waiting for others to do the heavy lifting if I ever want to
> use Go code on AIX+PPC.
I have started a GO port to ppc.
I have code for ql and qc compiling, and have started work on qg.
If anyone is interested, I can make my branch available.
Rich
> On 08/17/2010 09:09 PM, Ian Lance Taylor wrote:
>
>> One issue with supporting gccgo on AIX is that the code which handles
>> the import statement needs to be able to open up object files and
>> archives in order to extract the export data. I wrote that code for
>> ELF; somebody would need to write it for XCOFF. It's conceptually
>> straightforward.
>>
> Is the ELF support you mentioned contained in a file or two
> (something I could take a gander at)?
gcc/go/import-elf.cc and gcc/go/import-archive.cc.
>> I don't really understand your second question.
>>
> Basically, is any PPC assembly required or C code only?
For gccgo it is all C and C++ code.
Ian
Sure.
Thanks,
John
You can checkout from here:
hg clone https://codedr-go-ppc.googlecode.com/hg/ codedr-go-ppc
The changes are on branch 'codedr.ppc'
Rich
Ian
>> For gccgo it is all C and C++ code.
>>
>>
> Except for the small inline assembly where you save the callee-saved
> registers in SAVE_REGS macro ?
Well, yeah, OK, but in my defense there isn't any actual assembly code
there. You do have to know the names of the callee saved registers.
Ian
-eric
Does this mean that gccgo is totally hopeless on AIX? Even with native (not cross compile) gcc 4.7.2?
Hi,
I've stumbled on this: https://github.com/mirrors/gcc/commit/2c64b281f32d81eafbf0dce8b103ddbf7398ef2f
What's next?
What shall I do to have Go on AIX?
Thanks, GThomas
I've stumbled on this: https://github.com/mirrors/gcc/commit/2c64b281f32d81eafbf0dce8b103ddbf7398ef2f
What's next?
What shall I do to have Go on AIX?
Great news! I'm in need for that!
Can you share it somehow?