search for: stringvar

Displaying 5 results from an estimated 5 matches for "stringvar".

2010 Jan 11
0
[LLVMdev] Operations on constant array value?
Does the C API have an equivalent of stack storage? Via the C++ APIs one can shove the string constant on the stack via a store instruction operation on an alloca instruction--the address needed is the alloca. For example: llvm::Value* stringVar = builder.CreateAlloca(stringConstant->getType()); builder.CreateStore(stringConstant, stringVar); The stringVar is your address. Garrison On Jan 11, 2010, at 10:07, James Williams wrote: > Hi, > > I've read http://llvm.org/docs/LangRef.html#t_array and http://llvm.org/docs/Get...
2010 Jan 11
4
[LLVMdev] Operations on constant array value?
Hi, I've read http://llvm.org/docs/LangRef.html#t_array and http://llvm.org/docs/GetElementPtr.html and if I've understood right there are no operations that act directly on arrays - instead I need to use getelementptr on a pointer to an array to get a pointer to an array element. I also understand that there is no 'address of' operation. As a result I can't figure out how to
2006 Dec 29
2
Binary AGI Scripts
...I'm using stdin/stdout through the ReadLn and WriteLn commands in freepascal. Reading in the initial env variables is no problem, but once I issue a command like so: // >>> Create wav file from swift here <<< WriteLn('EXEC PLAYBACK /tmp/NewlyCreatedFile'); ReadLn(StringVar); // <========= Never returns // >>> Clean up code to delete file, etc <<< (The command STREAM FILES always comes back and complains the file is not found when it really is there so I have settled for using the Playback application.) Am I mistaken in thinking that Asteri...
2020 Feb 19
2
Poor write performance with golang binding
....Usage = func() { var ops []string for _, on := range OpNames { ops = append(ops, on) } fmt.Fprintf(flag.CommandLine.Output(), usage, filepath.Base(os.Args[0]), strings.Join(ops, "|")) flag.PrintDefaults() } flag.StringVar(&devname, "guestdevice", "", "guestfs device name") flag.IntVar(&bs, "blocksize", 1<<20, "blocksize") flag.Int64Var(&offset, "offset", 0, "offset") flag.Parse() var opname string var disk st...
2020 Feb 19
0
Re: Poor write performance with golang binding
...t; > for _, on := range OpNames { > ops = append(ops, on) > } > fmt.Fprintf(flag.CommandLine.Output(), usage, > filepath.Base(os.Args[0]), strings.Join(ops, "|")) > flag.PrintDefaults() > } > flag.StringVar(&devname, "guestdevice", "", "guestfs device name") > flag.IntVar(&bs, "blocksize", 1<<20, "blocksize") > flag.Int64Var(&offset, "offset", 0, "offset") > flag.Parse() > > var opna...