[ixp1200] using addresses of labels

Cyrus Hall hallcp at cs.colorado.edu
Tue May 13 18:28:15 EDT 2003


Hi there all-

I'm currently trying to build a table of address to parts of a filter
I've written.  IE, you have a value, index into the table, and jump to
the associated address in code.  The jumping is simple enough, save the
PC and replace it, give up control, and wait for the ctx switch back
in.  Not hyper efficient, but not bad when you're only filter one or two
fields.   Returning is simple enough as well.

The problem I'm having is actually get the address of code.  This
clearly needs to be done at compile time (there doesn't appear to be a
linker involved in loading code onto the ME's), and would seem to be as
simple as replacing the symbolic label with it's final address.  Yet,
there seems to be no way to do something like:

immed32[var, label#:]

Has anyone done anything like this and\or know how?

Thanks,
Cyrus




More information about the ixp1200 mailing list