[fpc-devel] More on freepascal armhf porting attempt, some progress made but now stuck.

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Mar 11 15:55:48 CET 2012


On 11 Mar 2012, at 15:40, peter green wrote:

>> Just set a breakpoint in the place where one of the offending instructions is generated, found via grep. E.g., the only place where an LDF is generated is in arm/cgcpu.pas (in a_loadfpu_ref_reg).
>>  
> Hmm, when I grepped for the first and most prolific problem instruction (mvfd) I didn't find anything useful. Maybe I should have tried some of the other problem intstructions.

The instruction is MVF. The "D" is a size suffix (like "movl" or "movb" is not an instruction x86, but "mov" is)

> Are you saying that VFP registers are treated as multimedia registers and not as FPU registers? If so presumablly that mean I should be using LOC_MMREG and not LOC_FPUREG as the location for parameters and return values?

Yes.


Jonas


More information about the fpc-devel mailing list