7#include "./source.auto.h"
10char maincontent[
sizeof(A_0) +
sizeof(A_1) +
sizeof(A_2) +
sizeof(A_3) +
sizeof(A_4) +
sizeof(A_5) - 5];
11char oclhead[
sizeof(B_0) +
sizeof(B_1) - 1];
14 struct CXUnsavedFile files[2];
15 const char* ARG[] = {
"main.cl" };
19 strcpy(maincontent, A_0);
20 strcat(maincontent, A_1);
21 strcat(maincontent, A_2);
22 strcat(maincontent, A_3);
23 strcat(maincontent, A_4);
24 strcat(maincontent, A_5);
29 files[0].Contents = maincontent;
30 files[0].Filename =
"main.cl";
31 files[0].Length =
sizeof(maincontent) - 1;
33 files[1].Contents = oclhead;
34 files[1].Filename =
"./opencl-c-base.h";
35 files[1].Length =
sizeof(oclhead) - 1;
46 FILE*
const fp = fopen(
"result.spv",
"wb");
47 unless(fp)
goto FPOPEN_FAILED;
49 fwrite(spirv0,
sizeof(
aclspv_wrd_t), (size_t)spirv_count, fp);
#define unless(a)
Invokes when condition is false.
aclspv_wrd_t aclspv_wrdcount_t
the integer type represents the number of word.
#define aclspv_wrd_t
integer as word