cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

relpats_eht
Journeyman III

IL Ascii to Bytecode Assembler

Hello,

I was told to move this question: http://devgurus.amd.com/message/1282023#1282023 here.

For a project I am currently working on, I am required to generate IL bytecode. I can generate IL assembler from OpenCL via a variety of tools, so I was wondering if anyone had a utility to convert this ASCII IL into the binary format. I figure since the IL specification was released there is no reason for such an assembler to be private.

I don't necessarily need source code, but it would be the most useful. Does anyone have or know where I can find such an assembler? I'd really like to avoid the tedium of making my own.

Thank you,

Andrew

0 Likes
1 Solution

This is not an officially supported one, but I bet Kernel Analyzer does it the same way.

Look for calcl.h in the SDK include directory.

calclCompile() - you can compile an executable image with this.

calclImageGetSize(),  calclImageWrite() - you can get the byte stream off of that image, which is an .elf executable file.

Manually extract the first .text section from that elf file, that's the AMD_IL binary! (the second .text section is the isa microcode)

View solution in original post

0 Likes
10 Replies