Talk:Syscall

From AWOS Wiki

Jump to: navigation, search

Parameter map

So this is a debated idea. Would love comments...

Basically, have a parameter map that defines the parameters on the stack and ends with a known signature. Possibly "AWOS" in ASCII or something. Just any signature that denotes the map is ending and the actual parameters are coming. My thoughts on this are --

Pros:

  1. Makes the parameters known instead of guessed by the function's signature.
  2. Enables optional parameters and varargs (something FreeBSD doesn't even have).

Cons:

  1. Would cost A LOT OF TIME
  2. Would put a lot of pressure/stress on the user-mode side
  3. Would be VERY SLOW
  4. Wouldn't be fast

AWilcox 23:03, 12 May 2009 (UTC)

Personal tools