Re: One more TARGET quiz



Richard Maine wrote:
Arjen Markus <arjen.markus@xxxxxxxxxx> wrote:

On 27 aug, 10:52, Oskar Enoksson <enok_tabort...@xxxxxxxxxxxxxx>
wrote:
My head started spinning again this morning ...

Is it possible to check if two TARGET dummies are associated with the
same variable like this?
[code elided]

I think that's ok, but I'd have to go read and ponder a bit to be sure.

I don't know.

Suppose a compiler can determine that no pointer reference to a TARGET dummy ever leaves a subroutine - what's stopping the compiler from generating a temporary for that TARGET dummy?

If it does, then the pointer is possibly just associated to the dummy argument, not necessarily to the actual argument.

I hope someone can tell.
/Oskar
.



Relevant Pages

  • Re: Build your own Forth for Microchip PIC (Episode 837)
    ... the unreasonablly small hardware stack size for my particular target. ... You are handcuffed in the sense that you would like to be able to download small amounts of code into ram and execute it. ... because once you do away with the inner interpreter, ... An optimizing compiler isn't a post-processor, it's an *alternative* to another kind of compiler. ...
    (comp.lang.forth)
  • Re: Build your own Forth for Microchip PIC (Episode 837)
    ... put those tokens in RAM. ... This is the reason I'm wanting to use the host as a remote execution ... Test/Debug code on target recompiling and reloading as necessary. ... of implementing anything other than a batch forth compiler for it. ...
    (comp.lang.forth)
  • Re: Build your own Forth for Microchip PIC: Design thoughts
    ... compiler is the only task that's burning in my brain right. ... that puts PIC code on the host for the simulator to execute. ... I'm not so sure about the simulator. ... That target will execute compiled forth words. ...
    (comp.lang.forth)
  • Re: Build your own Forth for Microchip PIC: Design thoughts
    ... testing words on the host, then transferring words to the target. ... where the students would be ultimately working with a cross-compiler, ... to a different compiler that will generate PIC code and download it. ...
    (comp.lang.forth)
  • Re: Build your own Forth for Microchip PIC: Design thoughts
    ... Embedded systems hardware I don't plan to buy. ... the flash write speed often dominates the transfer time. ... In one course, where the students would be ultimately working with a cross-compiler, I showed them how to download their completed apps to a 68K target which they'd never seen and they all worked with very minor changes (they had to put INTERPRETER before their CREATE ... ... What you need to do is feed your tested source to a different compiler that will generate PIC code and download it. ...
    (comp.lang.forth)