Displaying 3 results from an estimated 3 matches for "89c9f90c".
2013 Oct 14
0
[LLVMdev] Runtime Array-Length
The toy language I've been playing around with represents all strings as a
struct in llvm;
struct string{
char *ptr;
int str_len;
int buffer_len;
}
And my AST has an interface like;
String_AST{
int measure();
void copy(char *dest);
struct string get_value();
}
A constant string can be measured at compile time, for a string variable
measure() just extracts str_len. Strings
2013 Oct 12
2
[LLVMdev] Runtime Array-Length
All,
I am building my own language with llvm as the base.
I was working on string concatenation (where a string is just an array of
characters cast to a pointer to a character (i8*) ). Given two strings, it
is possible to determine the length of new string by summing the number of
characters until the null terminator and adding one.
Unfortunately, I have no idea how to use the c-api to store
2013 Oct 14
1
[LLVMdev] Runtime Array-Length
...ng list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131014/89c9f90c/attachment.html>