search for: otherobject

Displaying 3 results from an estimated 3 matches for "otherobject".

2006 Jul 31
0
Issues with has_many, belongs_to and dependency settings
...dress { has_many :other_objects, :dependency => :nullify } OutboundSmsAtom { #note this object also "belongs_to" other objects if that matters belongs_to :this_object } Whenever I try to destroy an object of type ThisObject, which at the time has 0 "children" OtherObjects I get the following type of error message >> address.destroy NameError: uninitialized constant OuboundSmsAtom from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc ies.rb:100:in `const_missing'' from /usr/lib/ruby/gems/1.8/gems/activesup...
2014 Dec 05
6
[LLVMdev] instruction/intrinsic for segmented adressing
Hi, would like to use LLVM as backend for a compiler. One of the features I would like to implement is segment based addressing for position independent data. For some it may sound strange, for others the opposite. No need to write complex story. Imagine you have a custom alocator that manages an area of 1GB of memory. Your application uses a custom allocator to allocate memory inside this area,
2014 Dec 06
2
[LLVMdev] instruction/intrinsic for segmented adressing
...t; #define ainline __attribute__((always_inline)) template<class A> class CompactPointer { uint32_t adr; public: ainline A *operator->() { return reinterpret_cast<A*>(static_cast<uint32_t*>(global_segment)+adr);} }; int main() { CompactPointer<OtherObject> cpoo; CompactPointer<Object> cp = cpoo->cpo; } ~ all such dereferencing statements would have in the IR references to the global_segment. Could track back all those (with a custom LLVM pass) and translate to a "segmented instruction". Having seen that address(256) is spe...