Re: fork() problems.

From: Dave Mason <dmason_at_nospam.org>
Date: Mon Dec 05 1994 - 07:40:17 PST

Dave Hudson writes (re: ebp):
> It's not particularly special - it's usually just used to reference the
> position of esp (less 4 for the save of the original value of ebp) on entry
> to a function. The x86 instruction set does have a few tricks it can do by
> combining ebp and ebx to speed things up. I've used it as just a general
> purpose reg in assembly code many times before though.

You probably know this, but I thought I'd mention it for completeness:
ebp and esp are the only registers that use the stack segment rather
than the data segment, so if ss!=ds (not that anybody would) you may
have problems treating ebp just like ebx or one of the others.

../Dave
Received on Mon Dec 5 07:16:11 1994

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:10 PDT