Displaying 1 result from an estimated 1 matches for "strdesc".
2012 Nov 10
2
[LLVMdev] Saving a reference to a Basic Block?
...b1
x$ = "b"
gosub sub2
goto end.prog
sub1:
print "sub1=";x$
sub2:
print "sub2=";x$
return
end.prog:
print "Bye!"
////// WHICH GENERATES THIS OUTPUT
Hello
sub1=a
sub2=a
sub2=b
Bye!
////// THE GENERATED LLVM CODE
; ModuleID = 'jas1.bas'
%StrDesc = type <{ i16, i16, i8* }>
@"x$" = common global %StrDesc zeroinitializer, align 8
@GosubRet = common global i32 0, align 4
@0 = private unnamed_addr constant [6 x i8] c"Hello\00"
@1 = private unnamed_addr constant [2 x i8] c"a\00"
@2 = private unnamed_addr cons...