This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is there any other optimization for memory?


Parmenides <mobile.parmenides@gmail.com> writes:

>>> 2. Â"and not optimize stores or loads to that memory"
>>> Except caching memory values in registers, is there any other
>>> optimizaiton for stores or loads to memory?
>>
>> Not in this case, I think it's just another way of saying the same
>> thing.
>>
>
> I think the reordering instructions involving memory operations but
> not stores or loads might count as some optimization. It seems that a
> "memory" will prevent gcc from this kind of optimization. If so, would
> the manual give some statements about it.

I'm sorry, I don't understand what you mean.


> In addition, an example will
> be more helpful for our newbies who does not have some ideas about the
> details underlying gcc.

There already is an example.


> Or, is there any tutorail about gcc available?

I don't know of one, but I wouldn't be surprised.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]