search for: section

Displaying 20 results from an estimated 20224 matches for "section".

2006 Jan 16
0
[newbie] Redundant SELECTs?
...he simple queries that load the attributes of an ActiveRecord object. In the transcript below, the record with id 0 gets fetched *eight times* during one request! This will become a terrible performance problem -- scaling as O(n^2) -- as the database grows. The table in question, ''sections'', uses acts_as_tree. In rendering each section, the app walks up the tree to find the path to the root, using the accessor Section#parent. I''m guessing that what''s happening is that Section#parent always allocates a new Section object (and fetches its contents fr...
2016 Oct 18
3
RFC: LLD: creating linker-generated sections as input sections instead of output sections
This idea popped up in the review thread for https://reviews.llvm.org/D25627 . Problem: Currently, LLD creates special sections that are not just concatenations of input sections but need link-time data generation, such as .got, .plt, interp, .mips.options, etc., as output sections. We have OutputSectionBase subclasses (e.g. GotSection, PltSection, etc.) to create data. Even though this scheme works in most cases, there ar...
2013 Jul 25
3
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
On 7/25/2013 3:56 PM, Rui Ueyama wrote: > I think I share the goal with you to make the foundation for better > dead-strip, so thank you for suggesting. I'm not sure if marking a section > as a whole as "safe" or "unsafe" is the best approach, though. Some > comments. > > - If the compiler generated code is always "safe", and if we can > distinguish it from hand-written assembly code by checking if there's a gap > between symbol...
2016 Oct 19
2
LLD: creating linker-generated sections as input sections instead of output sections
I would suggest converting only part of linker generated sections to input sections to reduce amount of code changes. For example it's unlikely that SymbolTableSection or StringTableSection would ever require such treatment, so why converting them to input sections? 2016-10-19 11:03 GMT+03:00 George Rimar <grimar at accesssoftek.com>: >>This id...
2013 Jul 25
0
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
Is there any reason -ffunction-sections and -fdata-sections wouldn't work? If it'll work, it may be be better to say "if you want to get a better linker output use these options", rather than defining new ELF section. On Thu, Jul 25, 2013 at 2:01 PM, Shankar Easwaran <shankare at codeaurora.org>wrote: > On...
2016 Oct 19
3
LLD: creating linker-generated sections as input sections instead of output sections
On Wed, Oct 19, 2016 at 3:34 AM, Peter Smith via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Thanks for the RFC. > > I'm in favour of the option of creating InputSections for some linker > generated content. I think it would add extra flexibility to the > linker. ARM's proprietary linker uses the equivalent of InputSections > with a pseudo linker defined ObjectFile for SHF_ALLOC content. As > Eugene points out it isn't always appropriate for met...
2018 Feb 06
3
[RFC] Add mergeable and eh_frame section pieces to map files and --print-gc/icf-sections reports
Hi, We’d like to propose an extension to both the map file and the print-gc/icf-sections output. This extension would be to report the pieces of .eh_frame and SHF_MERGE sections in these files somehow. Since all (or at least the majority) of the contents of these sections in the output come from inputs, it would be beneficial in trying to associate the output contents with where they...
2006 Jun 23
7
find_by_sql, can''t print results
I am a little stuck with getting an sql result into my page. I want to run a select distinct that returns all of the different sections available and displays this as a form select. In my controller I have: def edit @resource = Resource.find(params[:id]) @sections = Resource.find_by_sql "SELECT DISTINCT resources.section FROM resources" end And then in my view I have: <% for option in @sections %> &l...
2013 Jul 25
2
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
Not all users compile their code with -ffunction-sections and -fdata-sections. This is to handle usecases when libraries use a mix of object files too. On 7/25/2013 4:10 PM, Rui Ueyama wrote: > Is there any reason -ffunction-sections and -fdata-sections wouldn't work? > If it'll work, it may be be better to say "if you want...
2013 Jul 25
4
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
Hi, Currently lld ties up all atoms in a section for ELF together. This proposal just breaks it by handling it differently. *This requires **NO ELF ABI changes. *_*Definitions :-*_ A section is not considered safe if there is some code that appears to be present between function boundaries (or) optimizes sections to place data at the end or...
2014 Mar 11
2
[LLVMdev] [RFC] Section Declarations in LLVM IR
Hi all, I'd like to propose that LLVM IR have a mechanism to describe sections in a more explicit way than we can today. Currently, we provide an attribute called "section" on GlobalVariables and Functions. This attribute will choose which section the Value will end up in. However, it does not describe the attributes of the section. Without a way of describing th...
2013 Jul 25
0
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
I think I share the goal with you to make the foundation for better dead-strip, so thank you for suggesting. I'm not sure if marking a section as a whole as "safe" or "unsafe" is the best approach, though. Some comments. - If the compiler generated code is always "safe", and if we can distinguish it from hand-written assembly code by checking if there's a gap between symbols, can we just assume a sectio...
2008 Jun 21
3
[LLVMdev] llvm-gcc -O0 compile times
....2 (.9s vs .68s). This turns out to be because we make much larger output than GCC does: gcc.s -> 8943786 llvm.s -> 13424378 gcc.o -> 2055892 llvm.o -> 3044512 Why is this? Lets look at the contents: $ sdiff -w 120 gcc.size llvm.size Segment : 1495968 | Segment : 2211617 Section (__TEXT, __text): 251661 | Section (__TEXT, __text): 290873 Section (__DWARF, __debug_frame): 82752 | Section (__DWARF, __debug_frame): 80240 Section (__DWARF, __debug_info): 671478 | Section (__DWARF, __debug_info): 1240778 Section (__DWARF, __debug_abbrev): 3241 | Sec...
2017 Aug 15
3
[XRay] Alternatives to relocations in .text section
Hi llvm-dev, I'm currently looking for alternatives to the synthetic references that XRay uses to keep some side-tables live, to avoid linker garbage collection from deleting those sections. Before going any further, let me give a backgrounder on what XRay does today. Background ========== XRay has two side tables we use at runtime to identify the location of the sleds for the functions that are instrumented. These are named "xray_fn_idx" and "xray_instr_map". W...
2010 May 09
1
Emule Crash every day
...{0968e258-16c7-4dba-aa86-462dd61e31a3} could be created for context 0x1 err:ole:CoGetClassObject class {0968e258-16c7-4dba-aa86-462dd61e31a3} not registered err:ole:CoGetClassObject no class object {0968e258-16c7-4dba-aa86-462dd61e31a3} could be created for context 0x1 err:ntdll:RtlpWaitForCriticalSection section 0x151b25c "?" wait timed out in thread 0009, blocked by 0024, retrying (60 sec) err:ntdll:RtlpWaitForCriticalSection section 0x151b25c "?" wait timed out in thread 0009, blocked by 0024, retrying (60 sec) err:ntdll:RtlpWaitForCriticalSection section 0x151b25c "?&quo...
2013 Jul 30
3
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
On Jul 29, 2013, at 10:09 AM, Shankar Easwaran wrote: > On 7/29/2013 11:24 AM, Nick Kledzik wrote: >> On Jul 25, 2013, at 2:10 PM, Rui Ueyama wrote: >>> Is there any reason -ffunction-sections and -fdata-sections wouldn't work? If it'll work, it may be be better to say "if you want to get a better linker output use these options", rather than defining new ELF section. >> >From my understanding, -ffunction-sections is a good semantic match. But it introduces a...
2017 Oct 26
3
[RFC] Making .eh_frame more linker-friendly
Hi, Many linkers including lld have a feature to eliminate unused sections from output to make output smaller (which is essentially a mark-sweep gc where sections are vertices and relocations are edges). lld and GNU gold have yet another feature, ICF, to merge functions by contents to save more space. When we remove or merge a function, we want to eliminate its exceptio...
2017 Oct 26
4
[RFC] Making .eh_frame more linker-friendly
No I haven't. Thank you for the pointer. Looks like the problem of the inverted edges was discussed there. But I guess my bigger question is this: why do we still create one big .eh_frame even if -ffunction-sections is given? When the option is given, Clang creates .text, .rela.text and .gcc_exception_table sections for each function, but it still creates a monolithic .eh_frame that covers all function sections, which seems odd to me. On Thu, Oct 26, 2017 at 9:47 AM, Reid Kleckner <rnk at google.com>...
2018 Feb 06
0
[RFC] Add mergeable and eh_frame section pieces to map files and --print-gc/icf-sections reports
It seems that showing eh_frame section pieces in the map file is useful, but I wonder what would be a concrete use case of the feature. Do you mind if you ask you to describe your plan if you have a use case in mind? On Tue, Feb 6, 2018 at 4:27 AM, James Henderson < jh7370.2008 at my.bristol.ac.uk> wrote: > Hi, > > >...
2013 Jul 25
2
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
Then how about enable these flags for -O2? I want to hear from other people cc'ed, and I may be too cautious, but I'd hesitate to define a new ELF section if there's other mean already available to achieve the same thing. On Thu, Jul 25, 2013 at 2:12 PM, Shankar Easwaran <shankare at codeaurora.org>wrote: > Not all users compile their code with -ffunction-sections and > -fdata-sections. > > This is to handle usecases when lib...