I'm not planning to add 20-bit data instructions, nor 20-bit function 
pointers.
I will only have 16-bit function pointers. Those functions will be forced 
to be located in the lower 64K

Best regards,
Oszkar




Grant Edwards <[email protected]> 
Sent by: [email protected]
04/13/2007 05:32 PM
Please respond to
"GCC for MSP430 - http://mspgcc.sf.net"; 
<[email protected]>


To
[email protected]
cc

Subject
Re: [Mspgcc-users] mspcgg to support MSP430X






On 2007-04-13, Oszkar Ambrus <[email protected]> wrote:
> Ok, thank you very much.
> Then probably I'll start working on that, after adding 'calla' to the 
> compiler.
>
> I'm not planning to add 20-bit data instructions to the compiler, 
because 
> that would be very hard, and mostly useless.

Without 20-bit data instructions, how does one manipulate
"far pointers"?  Are there 32 bit pointers to code and 16 bit
pointers to data?  Using 32-bit pointer arithmetic instead of
20-bit seems a bit wasteful.

> What I intend to do is add only tha calla and reta to support
> 1Mb of code size.

So no pointers to functions?

> What I ran into is that the msp430.c nor the msp430.md do not
> use an emit_call instruction, like other architectures do.
> That complicates things a lot. I do not know where to make it
> use a 20-bit call, if I implement that in binutils.
>
> So I'd like to see first, that it does generate the correct
> assembler code, and than add the binutils functionality.

-- 
Grant Edwards                   grante             Yow!  Have my two-tone,
                                  at               1958 Nash METRO brought
                               visi.com            around...


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to