Displaying 20 results from an estimated 200 matches similar to: "[LLVMdev] Structure Alignment"
2009 Jun 04
0
[LLVMdev] Structure Alignment
Hi,
I have a problem using structs, when calling a function written in C from
a LLVM function or calling a LLVM function from a C one.
I noticed that the LLVM align double with 4 bytes and our run time routines
use 8, in MS Windows.
If a use #pragma pack(4) in my C programs, the routines run fine, but
I must ensure that all external call should use the #pragma directive.
If I change the llvm
2009 Jun 09
1
[LLVMdev] Structure alignment
Hi,
It's not ok yet.
When a C function calls a LLVM function, or a LLVM function calls a C function, the offset of the variables are wrong.
When a don't mix LLVM with C, it's ok, but I need call extern functions using structs.
Ciao
Manoel
Subject: Re: [LLVMdev] Structure alignment
To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
Message-ID:
2009 Jun 08
3
[LLVMdev] Structure alignment
%FIRSTSTRU = type { i32, double, i32, i8* }
struct {
int var1;
double var2;
int var3;
char *var4;
}firstStru ;
Could someone help?
If, running a application in windows with MSVC, I allocate a memmory buffer and call a LLVM
function with such buffer, there's a structure alignment problem.
If the LLVM function call a C function using the same buffer, it runs fine.
Any ideas?
2005 Oct 06
3
playing with R: make a animated GIF file...
Hello all
I am playing with R for to make a animated GIF.
any suggestions, improvements are welcome :-)
case somebody could help me, i thanks!
Cleber N. Borges ( klebyn )
my objective:
(steps TODO)
-------------------
1) to save PNG files;
-----> i don't know the best way to make this;
2) transform the PNG files into GIF files (easy! no problem! ... i
think ...)
3)
2010 Jan 04
0
ggplot2 = bar size
Hi,
i am newbie into ggplot and i thow that i have to learn a lot about this package.
I am doing this function to draw an graphic:
library(ggplot2)
posx <- theme_text(angle=45,hjust=1,face='bold',size=12)
posy <- theme_text(angle=0,hjust=1,face='bold',size=12)
y1 <- c(1,4,6,1,8,10,6,1,5,4)
x <-
2003 Apr 10
1
Starcraft Patch
I've done some work getting the patches from
http://starcraft-wine.sourceforge.net/ working with CVS wine. Using the
patch I'm including, starcraft works perfectly on my machine, run as
root using DGA on a 640x480 XF86 layout.
In particular the changes to event.c enable the mouse and keyboard with
DGA. The changes to input.c make the mouse acceleration work the same
in all directions.
2009 Jan 08
0
[LLVMdev] LLVMdev Digest, Vol 55, Issue 16
1. Re: LLVM optmization (Bill Wendling)
Hi,
The IR is not wrong. I said that the assembler generated by MSVC is quicker. We can see that the for loop, in the TESTE function, is done without jump's in the MSVC and with jumps in LLVM. I think thats the point.
If we don't use threads, the result is the same. My test were done with one billion interactions in the for loop. The MSVC
2009 Apr 14
2
matching lists
Dear All,
Here's my problem. I have two lists:
> v
[[1]]
[1] "five"
[[2]]
[1] "four"
[[3]]
[1] "three"
[[4]]
[1] "two"
[[5]]
[1] "one"
[[6]]
[1] "six"
[[7]]
[1] "five" "four" "three" "two" "one" "six"
[[8]]
[1] "four" "three"
2009 May 15
1
[LLVMdev] Intrinsic
Hi,
I'm trying to use exception control by LLVM.
In the demo page, I got :
declare i8* @llvm.eh.exception() nounwind
But, when a try to emit the code by llvm engine, the name is generate with the sufix .132
( llvm.eh.exception.132 ) and the Function::getIntrinsicID abort the program.
It was so :
Intrinsic::getDeclaration(llvm_module,Intrinsic::memset,&Tys,1);
Now, it's
2010 Dec 09
1
mutt freezes
Hi
Sometimes mutt freezes saying "Closing connection to imap.impa.br...".
Any clue?
Thanks
Manoel
===
My configuration:
User-Agent: Mutt/1.5.21 (2010-09-15)
# dovecot -n
# 2.0.8: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-194.26.1.el5xen x86_64 CentOS release 5.5 (Final)
default_client_limit = 1027
default_process_limit = 512
first_valid_gid = 1000
first_valid_uid = 1001
log_path
2009 Mar 10
1
[LLVMdev] llvm + stdcxx
I tried to compile LLVM + stdcxx and I got a lot of compiling errors.
Did anyone got that?
Manoel Teixeira
2008 Jul 07
1
imap-login: socketpair() failed: Too many open files
Hi,
I'am trying to use heartbeat to start dovecot...
It starts but all the login connections are reject with this line on log file:
Jul 7 12:47:28 markov dovecot: imap-login: socketpair() failed: Too many open files
No username/password are asked (using Thunderbird as client).
Outside heartbeat, dovecot runs fine.
My environment:
# dovecot --version
1.1.1
# uname -a
Linux markov.impa.br
2007 Mar 31
3
Sorting issues, can anyone help me?
I have this model:
class Post < ActiveRecord::Base
acts_as_ferret :fields => { :title => {:boost => 2},
:description => {},
:url => {},
:rank_sort => {:index =>
:untokenized_omit_norms, :term_vector => :no},
2009 Jan 06
2
[LLVMdev] LLVM Optmizer
The following C code :
#include <stdio.h>
#include <stdlib.h>
int TESTE2( int parami , int paraml ,double paramd )
{
int varx=0,vary;
int nI =0;
//varx= parami;
if( parami > 0 )
{
varx = parami;
vary = varx + 1;
}
else
{
varx = vary + 1;
vary = paraml;
}
varx = varx + parami + paraml;
for( nI = 1 ; nI <= paraml; nI++)
{
varx =
2006 Apr 27
0
redirect_to is changing my webpage charset
Gents,
I just figured out that redirect_to do something with the HTTP headers.
Specially the Content-type and charset.
I mean:
I got diferent encodings (charsets) if I use
http://myapp.com/welcome/index or http://myapp.com/welcome/
Can anyone tell me how can I solve that?
[]s
Manoel Lemos
--
Posted via http://www.ruby-forum.com/.
2009 Jan 14
0
[LLVMdev] LLVM optmization
Hi Manoel,
> Hi, Duncan.
>
> Here an example :
> #include <stdio.h>
> #include <stdlib.h>
> //
> int TESTE ( int parami ,int paraml )
> {
> int varx=0;
> int nI =0;
>
> if( parami > 0 )
> {
> varx = parami;
> }
> else
> {
> varx = 1;
> }
>
> for( nI = 1 ; nI <= paraml;
2009 Mar 05
0
[LLVMdev] LLVM +stdcxx
Is there some preprocess directive to compile LLVM using stdcxx in Windows + MSVC 2005?
Manoel Teixeira
2009 Mar 24
0
[LLVMdev] va_start
Hi,
When I try to use va_start(ptr), I got the following problem :
Type *Tys = PointerType::get(IntegerType::get(8), 0);
return Intrinsic::getDeclaration(llvm_module,Intrinsic::vastart,&Tys,1);
...............
The Name generated is "llvm.va_start.p0i8", so, it's not found, abending the process.
and Len = 18
In intrinsics.gen :
if (Len == 13 && !memcmp(Name,
2009 Mar 24
0
[LLVMdev] va_start
Hi,
When I try to use va_start(ptr), I got the following problem :
Type *Tys = Type::VoidTy;
Or
Type *Tys = PointerType::get(IntegerType::get(8), 0);
return Intrinsic::getDeclaration(llvm_module,Intrinsic::vastart,&Tys,1);
...............
The Name generated is "llvm.va_start.p0i8", so, it's not found, abending the process.
and Len = 18
In intrinsics.gen :
if (Len == 13
2009 May 15
0
[LLVMdev] LLVMdev Digest, Vol 59, Issue 25
I'm trying to use exception control by LLVM.
In the demo page, I got :
declare i8* @llvm.eh.exception() nounwind
But, when a try to emit the code by llvm engine, the name is generate with the sufix .132
( llvm.eh.exception.132 ) and the Function::getIntrinsicID abort the program.
Could some one help me?
Manoel Teixeira