public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: noeljohn <noel.daniel@gmx.com>
To: gcc-help@gcc.gnu.org
Subject: Re: Emission of store_multiple and load_multiple patterns
Date: Tue, 23 Feb 2010 08:03:00 -0000	[thread overview]
Message-ID: <27699239.post@talk.nabble.com> (raw)
In-Reply-To: <mcrwryw7hbx.fsf@dhcp-172-17-9-151.mtv.corp.google.com>




Ian Lance Taylor-3 wrote:
> 
> noeljohn <noel.daniel@gmx.com> writes:
> 
>> This is the arm assembly for the c program:
>> void main()
>>
>> {
>>
>> int a[5]={6,9,5,6,8};
>>
>> a[3]=a[2] & a[4];
>>
>> }
>>
>> The section below is the one which needs to be generated for the machine
>> which I am working for.
>>
>> 	.section	.rodata
>> 	.align	2
>> 	.type	C.0.1175, %object
>> 	.size	C.0.1175, 20
>> C.0.1175:
>> 	.word	6
>> 	.word	9
>> 	.word	5
>> 	.word	6
>> 	.word	8
>>  
>> Similar section is seen for the assembly generated by the machine
>> powerpc.
>> How can it be generated?
> 
> Thanks for the example.  This is controlled by the cost of moving the
> structure piece by piece.  See MOVE_MAX, MAX_MOVE_MAX,
> MOVE_MAX_PIECES, and MOVE_BY_PIECES_P in the internals manual.
> 
> Ian
> 
> 


Hello Sir,
    I introduced MOVE_MAX and MOVE_RATIO macros. With this the gcc build is
successful. But when I compile the .c file, I get a segmentation fault. 
    Are there any docs which will help in knowing the respective macros
required for the rodata section emission ? Awaiting for your help.

noeljohn

-- 
View this message in context: http://old.nabble.com/Emission-of-store_multiple-and-load_multiple-patterns-tp26739724p27699239.html
Sent from the gcc - Help mailing list archive at Nabble.com.

  parent reply	other threads:[~2010-02-23  7:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11  9:31 noeljohn
2009-12-12  2:21 ` Ian Lance Taylor
2009-12-14 12:40   ` noeljohn
2009-12-16  1:18     ` Ian Lance Taylor
2010-01-12  6:56       ` noeljohn
2010-01-28  6:16       ` noeljohn
2010-01-28  6:55         ` Ian Lance Taylor
2010-01-29  9:49           ` noeljohn
2010-01-29 15:25             ` Ian Lance Taylor
2010-02-01 10:12               ` noeljohn
2010-02-01 22:19                 ` Ian Lance Taylor
2010-02-02 13:05                   ` noeljohn
2010-02-23  8:03                   ` noeljohn [this message]
2010-02-23 18:30                     ` Ian Lance Taylor
2010-03-01 10:51                       ` noeljohn
2010-03-08 14:02                       ` noeljohn
2010-03-08 20:27                         ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27699239.post@talk.nabble.com \
    --to=noel.daniel@gmx.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).