search for: baseaddress

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

2018 Mar 22
2
Question about debug information for global variables
Hi, I'm trying to achieve the following: - I have a global variable BaseAddress that holds the base address of a contiguous dynamically allocated memory block. - I have a number of logical variables of different types that are mapped on certain address ranges inside the memory block pointed to by BaseAddress. The offset and the size of each such logical variable inside the me...
2018 Mar 22
0
Question about debug information for global variables
> On Mar 22, 2018, at 4:08 PM, Roman Levenstein <romixlev at gmail.com> wrote: > > Hi, > > I'm trying to achieve the following: > > - I have a global variable BaseAddress that holds the base address of > a contiguous dynamically allocated memory block. > > - I have a number of logical variables of different types that are > mapped on certain address ranges inside the memory block pointed to by > BaseAddress. The offset and the size of each such logic...
2018 Mar 22
2
Question about debug information for global variables
...22, 2018 at 4:22 PM, Adrian Prantl <aprantl at apple.com> wrote: > > >> On Mar 22, 2018, at 4:08 PM, Roman Levenstein <romixlev at gmail.com> wrote: >> >> Hi, >> >> I'm trying to achieve the following: >> >> - I have a global variable BaseAddress that holds the base address of >> a contiguous dynamically allocated memory block. >> >> - I have a number of logical variables of different types that are >> mapped on certain address ranges inside the memory block pointed to by >> BaseAddress. The offset and the size...
2018 Mar 22
0
Question about debug information for global variables
...prantl at apple.com> wrote: >> >> >>> On Mar 22, 2018, at 4:08 PM, Roman Levenstein <romixlev at gmail.com> wrote: >>> >>> Hi, >>> >>> I'm trying to achieve the following: >>> >>> - I have a global variable BaseAddress that holds the base address of >>> a contiguous dynamically allocated memory block. >>> >>> - I have a number of logical variables of different types that are >>> mapped on certain address ranges inside the memory block pointed to by >>> BaseAddress. Th...
2018 Mar 23
2
Question about debug information for global variables
...>>> >>> >>>> On Mar 22, 2018, at 4:08 PM, Roman Levenstein <romixlev at gmail.com> wrote: >>>> >>>> Hi, >>>> >>>> I'm trying to achieve the following: >>>> >>>> - I have a global variable BaseAddress that holds the base address of >>>> a contiguous dynamically allocated memory block. >>>> >>>> - I have a number of logical variables of different types that are >>>> mapped on certain address ranges inside the memory block pointed to by >>>&...
2018 Mar 23
0
Question about debug information for global variables
...t;>>>> On Mar 22, 2018, at 4:08 PM, Roman Levenstein <romixlev at gmail.com> wrote: >>>>> >>>>> Hi, >>>>> >>>>> I'm trying to achieve the following: >>>>> >>>>> - I have a global variable BaseAddress that holds the base address of >>>>> a contiguous dynamically allocated memory block. >>>>> >>>>> - I have a number of logical variables of different types that are >>>>> mapped on certain address ranges inside the memory block pointed to...
2012 Jan 07
0
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
Hi Ruben, > I see I missed some curly braces. I also modified spacing a tiny bit. Doesn't seem so. E.g. you have: + if ( !VirtualQuery(addr, &b, sizeof(b)) ) + exit(1); + if( !VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect) ) Add space after "if". Do not put spaces after "(" and before ")". Same for other places in the file. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State Univers...
2012 Jan 07
3
[LLVMdev] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...t)execution_buffer & (-4095)); char* end = (char*)((uintptr_t)(&execution_buffer[128+4096]) & (-4095)); +#if defined(_WIN32) + DWORD dummy_oldProt; + MEMORY_BASIC_INFORMATION b; + if ( !VirtualQuery(start, &b, sizeof(b)) ) + return 1; + if ( !VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect) ) +#else if ( mprotect(start, end-start, PROT_READ|PROT_WRITE|PROT_EXEC) != 0 ) +#endif return 1; // verify you can copy and execute a function @@ -53,7 +70,8 @@ __clear_cache(execution_buffer, &execution_buffer[12...
2010 Sep 20
1
Dynamic forking in Win32
...{ ErrorExit("VirtualQueryEx: Failed!\n"); TerminateProcess(pi.hProcess, 0); exit(1); } else { printf( "Before:\n" "Process basic info: 0x%08X\n" " BaseAddress: 0x%08X\n" " AllocationBase: 0x%08X\n" " AllocationProtect: 0x%08X\n" " RegionSize: 0x%08X\n", basic_info.BaseAddress, basic_info.AllocationBase, basic_info.A...
2012 Jan 07
1
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...t)execution_buffer & (-4095)); char* end = (char*)((uintptr_t)(&execution_buffer[128+4096]) & (-4095)); +#if defined(_WIN32) + DWORD dummy_oldProt; + MEMORY_BASIC_INFORMATION b; + if ( !VirtualQuery(start, &b, sizeof(b)) ) + return 1; + if ( !VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect) ) +#else if ( mprotect(start, end-start, PROT_READ|PROT_WRITE|PROT_EXEC) != 0 ) +#endif return 1; // verify you can copy and execute a function Index: test/Unit/enable_execute_stack_test.c ==================================...
2012 Jan 07
2
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...ynikov <anton at korobeynikov.info> > Hi Ruben, > > > I see I missed some curly braces. I also modified spacing a tiny bit. > Doesn't seem so. E.g. you have: > > + if ( !VirtualQuery(addr, &b, sizeof(b)) ) > + exit(1); > + if( !VirtualProtect(b.BaseAddress, b.RegionSize, > PAGE_EXECUTE_READWRITE, &b.Protect) ) > Add space after "if". Do not put spaces after "(" and before ")". Same > for other places in the file. > OK, I followed the rules you set forth here. But the files followed different ones, hence...
2011 Nov 14
1
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...opInfo.h 2011-11-13 02:34:47.000000000 +0100 > @@ -45,12 +45,13 @@ > private: > unsigned ElemBytes; > TypeKind Type; > + bool is_affine; I think IsAffine matches more the LLVM coding conventions. > > public: > explicit IRAccess (TypeKind Type, const Value *BaseAddress, > - const SCEV *Offset, unsigned elemBytes) > + const SCEV *Offset, unsigned elemBytes, bool affine) 'affine' should start with an uppercase letter. Polly itself has some inconsistent naming, but we started to follow the LLVM coding conventi...
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...eType, unsigned __int64 HeapAddress, unsigned __int64 Address) Line 670 C ntdll.dll!RtlpLogHeapFailure(_HEAP_FAILURE_TYPE FailureType, void * HeapAddress, void * Address, void * Param1, void * Param2, void * Param3) Line 158 C ntdll.dll!RtlFreeHeap(void * HeapHandle, unsigned long Flags, void * BaseAddress) Line 352 C ucrtbase.dll!_free_base(void * block) Line 105 C++ XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo) Line 238 C++ XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential * __ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::StringRef,llvm::ConstantDa...
2011 Nov 14
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...0100 >> @@ -45,12 +45,13 @@ >>  private: >>    unsigned ElemBytes; >>    TypeKind Type; >> +  bool is_affine; > > I think IsAffine matches more the LLVM coding conventions. > >> >>  public: >>    explicit IRAccess (TypeKind Type, const Value *BaseAddress, >> -                     const SCEV *Offset, unsigned elemBytes) >> +                     const SCEV *Offset, unsigned elemBytes, bool affine) > > 'affine' should start with an uppercase letter. Polly itself has some > inconsistent naming, but we started to follow the...
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...ddress = uintptr_t(Section.Address) + i->second; + DEBUG(dbgs() << " Stub function found\n"); + } else { + // Create a new stub function (equivalent to a PLT entry). + DEBUG(dbgs() << " Create a new stub function\n"); + + uintptr_t BaseAddress = uintptr_t(Section.Address); + uintptr_t StubAlignment = getStubAlignment(); + StubAddress = (BaseAddress + Section.StubOffset + + StubAlignment - 1) & -StubAlignment; + unsigned StubOffset = StubAddress - BaseAddress; + Stubs[Value] = StubOffse...
2011 Nov 02
5
[LLVMdev] How to make Polly ignore some non-affine memory accesses
Mmm I found out a very strange behavior (to me) of the SCEV analysis of the loop bound of the external loop I posted. When in ScopDetection it gets the SCEV of the external loop bound in the "isValidLoop()" function with: const SCEV *LoopCount = SE->getBackedgeTakenCount(L); It returns a SCEVCouldNotCompute, but if I change the "if" block inside the loop from: if
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...eapAddress, unsigned __int64 Address) Line 670 C > ntdll.dll!RtlpLogHeapFailure(_HEAP_FAILURE_TYPE FailureType, void * > HeapAddress, void * Address, void * Param1, void * Param2, void * Param3) > Line 158 C > ntdll.dll!RtlFreeHeap(void * HeapHandle, unsigned long Flags, void * > BaseAddress) Line 352 C > ucrtbase.dll!_free_base(void * block) Line 105 C++ > XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo) > Line 238 C++ > XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential * > __ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::S...
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
...ary and R crashes and I can't load the DLL. I keep getting the following error: > dyn.load( "optflikam.dll" ) 5 [main] ? 4012 init_cheap: Couldn't reserve space for cygwin's heap, Win32 error 487 c:\program files\r\rw1081\bin\Rterm.exe (4012): *** AllocationBase 0x0, BaseAddress 0x61670000, RegionSize 0x1050000, State 0x10000 I thought it might have something to do with the compiler, so I looked at the version of cygwin's gcc: C:\optflikam>gcc --version gcc (GCC) 3.3.1 (cygming special) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see t...
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
...ary and R crashes and I can't load the DLL. I keep getting the following error: > dyn.load( "optflikam.dll" ) 5 [main] ? 4012 init_cheap: Couldn't reserve space for cygwin's heap, Win32 error 487 c:\program files\r\rw1081\bin\Rterm.exe (4012): *** AllocationBase 0x0, BaseAddress 0x61670000, RegionSize 0x1050000, State 0x10000 I thought it might have something to do with the compiler, so I looked at the version of cygwin's gcc: C:\optflikam>gcc --version gcc (GCC) 3.3.1 (cygming special) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see t...
2013 Jun 25
0
[LLVMdev] [PATCH] Windows implementation of enable_execute_stack
...generic Unix implementation. Neither applies to Win32, so > I ifdef'ed the whole thing. > > >> > + MEMORY_BASIC_INFORMATION b; >> > + >> > + if (!VirtualQuery(addr, &b, sizeof(b))) >> > + exit(1); >> > + if (!VirtualProtect(b.BaseAddress, b.RegionSize, >> PAGE_EXECUTE_READWRITE, &b.Protect)) >> > + exit(1); >> > +#endif /* _WIN32 */ >> > } >> >> Aside from that, patch LGTM. >> > > Great! > > Ruben > > >> >> ~Aaron >> > > Friendly p...