search for: smedberg

Displaying 20 results from an estimated 21 matches for "smedberg".

2007 Dec 03
2
[LLVMdev] LLVM footprint
...this normal? Am I linking to "too much" or not using the correct link flags? Note that I'm not using the LLVM build system, I'm using the Mozilla build system and manually pulling in the libraries I needed to resolve symbols... The makefile is here: http://hg.mozilla.org/users/bsmedberg_mozilla.com/llvm-test/?file/e021a9901b98/Makefile.in EXTRA_DSO_LDOPTS = \ $(XPCOM_GLUE_LDOPTS) \ $(NSPR_LIBS) \ -L$(LLVM_PREFIX)/lib \ $(LLVM_PREFIX)/lib/LLVMJIT.o \ $(LLVM_PREFIX)/lib/LLVMExecutionEngine.o \ $(LLVM_PREFIX)/lib/LLVMInterpreter.o \ $(LLVM_PREFIX)/lib/LLVMX86.o \ -l...
2006 Apr 28
2
Active Record save doesn''t save! (more detail - is this a bug?)
...c locking on and > > the lock-version field did not update so the problem isn''t with an > > individual setter (though I had that problem with this same code a couple > > months ago. I assumed originally that it was back.). > > > > > > On 4/28/06, Michael Smedberg < smedberg@gmail.com> wrote: > > > > > > OK, so it sounds like the save is happening successfully. Do you know > > > what it''s doing? I''d look at the log file, to see what SQL is happening. > > > If there''s no SQL changing the d...
2007 Dec 01
1
[LLVMdev] Runtime JIT: passing function pointers as values?
...ake the address of the C++ function and pass it to the JIT directly as a value, rather than referencing the function by a symbolic name? That is, a class analagous to "ConstantInt" but for pointers: "ConstantPtr::get(MyFunctionType, &MyCPPFunction)" - --BDS - -- Benjamin Smedberg Platform Guru Mozilla Corporation benjamin at smedbergs.us http://benjamin.smedbergs.us/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHUX5zSSwGp5sTYNkRAmA8AJ0VDsrIlzpJNE+zUg6sH9VsD2GZ5wCgjVOS xkMrt2mAL1sX8iUUhcRA...
2007 Dec 01
2
[LLVMdev] pointer-sized integer type
Benjamin, > It seems that LLVM bytecode doesn't have a builtin type for "pointer-sized > integer". You should use TargetData to provide a size of pointer. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
2007 Dec 02
0
[LLVMdev] pointer-sized integer type
...as not clear. When JITting code it's not hard to figure out the size of a pointer and use the equivalent integer type. I mean, is it possible to create architecture-independent LLVM assembly/bytecode that has an "integer that's the same size as a pointer"? - --BDS - -- Benjamin Smedberg Platform Guru Mozilla Corporation benjamin at smedbergs.us http://benjamin.smedbergs.us/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHUgmsSSwGp5sTYNkRAu9DAJ9Y7zEkJieYwLXu+IuBsyAQmWhEAwCePdMt KUztxE51Y7H/1Qa9H6t+...
2007 Dec 03
1
[LLVMdev] LLVM footprint
...preter anyway. Right now this is personal experimentation, but if Mozilla decides to use te LLVM JIT for some of our Mozilla2 projects we'll definitely be contributing to reduce the footprint as much as possible, as well as the MSVC thiscall support I mentioned before. - --BDS - -- Benjamin Smedberg Platform Guru Mozilla Corporation benjamin at smedbergs.us http://benjamin.smedbergs.us/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHVHOiSSwGp5sTYNkRAlntAJ4halntb60Dva5V2IIyIrAD3UWOgACgnUoW x0NMLmP8fDgBmk5uNK9M...
2008 Feb 27
0
[LLVMdev] LLVM test fails with "gnu/stubs-32.h: No such file or directory"
...y related to my machine running a 64-bit install of | Ubuntu. I'm not sure whether this should be rectified in Ubuntu or LLVM. You don't have i386 and x86-64 devel packages installed. Ask your package manager what package provies stubs-64.h... or --disable-multilib - --BDS - -- Benjamin Smedberg Platform Guru Mozilla Corporation benjamin at smedbergs.us http://benjamin.smedbergs.us/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHxM1DSSwGp5sTYNkRArvnAKCM97BS4xNVPiA3AWLvsveumrJ1kgCfTo9T I+yBqj71gmIyzkNJObXs...
2008 Feb 26
3
[LLVMdev] LLVM test fails with "gnu/stubs-32.h: No such file or directory"
Subject says it all. Looking in /usr/include/gnu, I find stubs-64.h and stubs.h, but no stubs-32.h. This is probably related to my machine running a 64-bit install of Ubuntu. I'm not sure whether this should be rectified in Ubuntu or LLVM. Regards, Jo
2006 Apr 28
7
Active Record save doesn''t save! (or throw an exception)
PLEASE help me - this is making me insane. Can anyone suggest any reasons for this behavior? It occured previously, then went away and is now back. In Task.rb (where task is an active record subclass) def clear_schedule puts "clearing schedule for task" scheduled_end_date= nil #reset the scheduled end date save halt.
2007 Dec 04
2
[LLVMdev] Memory allocation (or deallocation) model?
...ay good as long as the execution engine is alive? * Once the function is JITted, will all those types/instructions/functions still be allocated in memory? ** If so, is there a way to explicitly free them? * Can I "delete executionEngine" to free up all the memory? - --BDS - -- Benjamin Smedberg Platform Guru Mozilla Corporation benjamin at smedbergs.us http://benjamin.smedbergs.us/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHVKRfSSwGp5sTYNkRAg5KAKCkaYvIqD9ERW8d6HXVNUoSY3jcUwCfcLYX TSO793MS0OzgxSEOKURY...
2007 Dec 03
0
[LLVMdev] LLVM footprint
On Mon, 3 Dec 2007, Benjamin Smedberg wrote: > What is the expected footprint of a tool using the LLVM JIT? Right now it's ~1.5 to 2M for one platform, at least on darwin. > I have created a simple project that uses the LLVM C++ API to JIT calls > to XPCOM method signature... it works well, but the component DLL is &gt...
2007 Dec 01
0
[LLVMdev] thiscall on MSVC
...but with MSVC this won't work because it passes "this" in %ECX. Is there a workaround for this? Or how hard would it be to add a separate "thiscall" convention which maps to "ccc" on GCC-like targets and the custom MSVC target on MSVC-x86? - --BDS - -- Benjamin Smedberg Platform Guru Mozilla Corporation benjamin at smedbergs.us http://benjamin.smedbergs.us/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHUX89SSwGp5sTYNkRAr1BAJ9mvl5TX3htJKvKv0fgRnLYmLDqfACg2kVz QYsxHM/HjaX2QpL8MUYm...
2007 Dec 01
0
[LLVMdev] pointer-sized integer type
...GE----- Hash: SHA1 It seems that LLVM bytecode doesn't have a builtin type for "pointer-sized integer". Is there a way to emulate a pointer-size integer type in bytecode without knowing the target processor word size? How hard would it be to add such a type? - --BDS - -- Benjamin Smedberg Platform Guru Mozilla Corporation benjamin at smedbergs.us http://benjamin.smedbergs.us/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHUX+XSSwGp5sTYNkRAt4SAJ9POuNxwTaLx4o+hxyWLf9t4V69jQCgidC0 5RVoFXrcLfLkv5UDs3pu...
2008 Feb 22
2
[LLVMdev] Calling functions
Hello! I'm trying LLVM for generating code and I found something I cannot figure out or find in the documentation: I'm doing something like this to call "sin" from std: std::vector<const Type*> params; params.push_back( Type::FloatTy ); FunctionType *FT = FunctionType::get( Type::FloatTy, params, false); Function *F = new Function( FT, Function::ExternalLinkage,
2008 Feb 25
0
[LLVMdev] Calling functions
----- Mensaje original ---- De: Benjamin Smedberg <benjamin at smedbergs.us> Para: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> Enviado: viernes, 22 de febrero, 2008 22:36:40 Asunto: Re: [LLVMdev] Calling functions -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Álvaro Castro wrote: | Hello! | | | I'm...
2006 Mar 24
10
Running Rails tasks by schedule, instead of an HTTP request.
Hi there I''m considering Rails for a new web-application planned to be built from scratch. The application has an extensive web front, and in fact most of the application is interfaced through that front and engaged through clients'' HTTP requests (i.e. the conventional way web-applications and "dynamic web-sites" work). However, some essential parts are supposed to
2006 Mar 16
5
TimeZone, TZInfo, daylight savings, and composed_of
Does anyone know the best way to track time zone information. There doesn''t seem to be much documentation on this. So far it seems like a simple db field like create table accounts ( id int unsigned not null auto_increment, name varchar(50) not null, time_zone varchar(50) not null, ... primary key (id) ) and a class like class Account < AR ...
2005 Dec 28
6
coverage does not work
Hi, I''ve installed coverage (gem install coverage) and try to run tests with -rcoverage option on, but following error occurs: ruby: No such file to load -- coverage (LoadError) I try: ruby -rcoverage mytest.rb 1. I have rubygems in evn var RUBYOPT 2. Gem seems to be installed properly (I can read doc via gems, the files exist in the ../gem/... dirs) Does anyone know what is the
2007 Dec 04
0
[LLVMdev] Memory allocation (or deallocation) model?
On Mon, 3 Dec 2007, Benjamin Smedberg wrote: > I've been reading the headers and > http://llvm.org/releases/2.1/docs/ProgrammersManual.html and I'm still > confused about a pretty fundamental point... who is expected to clean up > various objects when we're finished with them, and when? Ok, different objects ha...
2005 Dec 31
6
I don''t even know how to ask the question (4 lines of code)
I create a hash using this line of code @x = Account.find(:all) I then want to go through each element in turn and add a key value pair to the end of it. I thought this would work, but it does not. @x.each do |a| a.merge({"balance"=>50} I used merge because I thought ''a'' would be a hash (how do you find out the type of an object?) I then guess it was