Displaying 3 results from an estimated 3 matches for "locstring".
Did you mean:
docstring
2014 Jan 30
2
[PATCH] builder: output translated notes
...able[7] = {
+ LC_ALL,
+ LC_CTYPE,
+ LC_NUMERIC,
+ LC_TIME,
+ LC_COLLATE,
+ LC_MONETARY,
+ LC_MESSAGES
+};
+
+#define Val_none (Val_int (0))
+
+value
+virt_builder_setlocale (value val_category, value val_name)
+{
+ CAMLparam2 (val_category, val_name);
+ CAMLlocal2 (rv, rv2);
+ char *ret, *locstring;
+ int category;
+
+ category = lc_string_table[Int_val (val_category)];
+ locstring = val_name == Val_none ? NULL : String_val (Field (val_name, 0));
+ ret = setlocale (category, locstring);
+ if (ret) {
+ rv2 = caml_copy_string (ret);
+ rv = caml_alloc (1, 0);
+ Store_field (rv, 0,...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not
allocating RBP to any virtual register, the instances of RBP in function
foo are in the machine code when my register allocator starts.)
Function foo calls function bar. Register RBP is not saved across the
call, though it is live after the call. Function bar includes a virtual
register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
On 11/30/2012 6:36 PM, Lang Hames wrote:
>
>
> RBP is used as the frame pointer on x86 (hence its automatic
> appearance in your code), and shouldn't be allocated to any vreg in
> function bar. Loading/saving RBP should be managed by the stack frame
> setup/teardown code.
> If it doesn't already, your allocator should filter out reserved
> registers (See