MSVC 2010 issues an error if given a string larger than 64k characters long. To work around this, the pre-processed stdlib.ispc code is now stored as an array of characters terminated with a NUL (i.e. the same thing in the end); MSVC is fine with arrays larger than 64k characters.
13 lines
160 B
Python
Executable File
13 lines
160 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import sys
|
|
|
|
print "char stdlib_code[] = { "
|
|
|
|
for line in sys.stdin:
|
|
for c in line:
|
|
print ord(c)
|
|
print ", "
|
|
|
|
print "0 };"
|