This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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: MIPS crti.S, crtn.S


On 02/10/2012 04:34 AM, Joseph S. Myers wrote:
> I've applied this patch to add MIPS crti.S and crtn.S.  These are closely 
> based on compiler output and it may be useful to simplify them in future 
> using the sys/asm.h macros.

I think there's a fair amount of cleanup that could be done by simply
relying on assembler macro-ization.  E.g.

	jal	PREINIT_FUNCTION

letting the assembler load the address into $25 for you.  And isn't
there a pseudo-op that loads the GP?

Yes, the compiler likes to avoid these because it can get better 
schedules, but they seem ideal for the purposes here.


r~


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