search for: data_section

Displaying 6 results from an estimated 6 matches for "data_section".

2019 Feb 22
2
Create the GlobalVariable which have extern in one header file
...reate this array with the same name and with initializer. So, I have following: GlobalVariable *gvar_data = new GlobalVariable( M, blockItems->getType(), true, GlobalValue::CommonLinkage, blockItems, "DATA_TABLE"); gvar_data->setAlignment(16); gvar_data->setSection("data_section"); gvar_data->addAttribute(llvm::Attribute::OptimizeNone); I am not sure if I am using the correct Linkage or not. The pass has failed to complete it. Here is the runtime fault. Any guess what I am doing incorrect? 'common' global must have a zero initializer! [10 x i8*]* @DATA_TA...
2019 Feb 22
1
Create the GlobalVariable which have extern in one header file
I have changed it to ExternalLinkage. Now, in LLVM IR, it looks like that: @DATA_TABLE = external global [0 x i8*], section "data_section", align 16 #0 @DATA_TABLE.1 = global [10 x i8*] [i8* inttoptr (i64 53415718 to i8*), i8* bitcast (void (%class.Hello*)* @_ZN5Hello5ptofnEv to i8*),...], section "data_section", align 16 #0 In my uses: %arrayidx = getelementptr inbounds [0 x i8*], [0 x i8*]* @DATA_TABLE, i64 0, i64 %...
2009 May 21
1
[PATCH server] Updated look and feel for empty grid views
...no-grid-items.png diff --git a/src/app/views/hardware/show_hosts.rhtml b/src/app/views/hardware/show_hosts.rhtml index fb54373..18ee4a6 100644 --- a/src/app/views/hardware/show_hosts.rhtml +++ b/src/app/views/hardware/show_hosts.rhtml @@ -109,14 +109,11 @@ <% else %> <div class="data_section"> <div class="no-grid-items"> - <%= image_tag 'no-grid-items.png', :style => 'float: left;' %> - + <img src="images/jumbo_hosts.png" alt="hosts" width="145" height="145">...
2008 Jan 05
0
Assembly on Mac OS needs to be relocatable
...lac 1.2.1 to OS X (I'm taking over maintainership of the Fink package), and I'm running into some problems with bitreader_asm.nasm. After adding the following to nasm.h: +%elifdef OBJ_FORMAT_macho + %define FLAC__PUBLIC_NEEDS_UNDERSCORE + %idefine code_section section .text + %idefine data_section section .data + %idefine bss_section section .bss I can get it compiling, but when it tries to link the libFLAC dylib, it complains: ld: warning codegen in FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap.c1_loop (offset 0x0000003A) prevents image from loading in dyld shared cache ld:...
2017 Mar 10
3
[cfe-dev] proposal - pragma section directive in clang
...agma section name is > declared in global > scope. All global variables and functions get assigned to the > corresponding specialized > section name if one is present. With this feature, the following code: > > // foo.c > #pragma bss_section(".bss.alpha") > #pragma data_section(".data.beta") > #pragma code_section(".code.gamma") > #pragma const_section(".const.delta") > int a; > int b=2; > const int d = 5; > int c(){ > return d; > } > > ..will emit llvm-ir as: > > target triple = "armv7-arm-none-eabi...
2011 Sep 02
5
Hessian Matrix Issue
Dear All, I am running a simulation to obtain coverage probability of Wald type confidence intervals for my parameter d in a function of two parameters (mu,d). I am optimizing it using "optim" method "L-BFGS-B" to obtain MLE. As, I want to invert the Hessian matrix to get Standard errors of the two parameter estimates. However, my Hessian matrix at times becomes