Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-05

$W

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Philipp Lucas

Hi,

according to the Programmer's Manual, the switch $W should toggle the generation of stackframes. Using {$W-} (or {$STACKFRAMES OFF}) gives me

Warning: Unsupported switch $W

What's the reason for this?

Philipp Lucas
fpc
to Philipp Lucas

Hi,

I've just encountered a problem with FPU code in BASM:

source line:

fsub st(1),st(0)

delphi compiles:

fsub st(1),st(0) opcode: DC E9

fpc compiles:

fsubr st(1),st(0) opcode: DC E1

I'm quite sure that the fpc way is wrong. (version 1.0.6)

Vitek

Ingmar Tulva
to Vit Kavan

On Tue, 28 May 2002, Vit Kavan wrote:

}I've just encountered a problem with FPU code in BASM: }
}source line:
}
}fsub st(1),st(0)
}
}delphi compiles:
}
}fsub st(1),st(0) opcode: DC E9
}
}fpc compiles:
}
}fsubr st(1),st(0) opcode: DC E1
}
}
}I'm quite sure that the fpc way is wrong. (version 1.0.6) }

Which assembler style did you use, Intel or ATT?

Ingmar

------

"Salamanders can survive up to six hours outside a fire if regularly fed pepper" (Scamander 1927).

Vit Kavan
to Ingmar Tulva

Intel

IT> On Tue, 28 May 2002, Vit Kavan wrote:

IT> }I've just encountered a problem with FPU code in BASM: IT> }
IT> }source line:
IT> }
IT> }fsub st(1),st(0)
IT> }
IT> }delphi compiles:
IT> }
IT> }fsub st(1),st(0) opcode: DC E9
IT> }
IT> }fpc compiles:
IT> }
IT> }fsubr st(1),st(0) opcode: DC E1
IT> }
IT> }
IT> }I'm quite sure that the fpc way is wrong. (version 1.0.6) IT> }

IT> Which assembler style did you use, Intel or ATT?

IT> Ingmar

IT> ------

IT> "Salamanders can survive up to six hours outside a fire if regularly fed IT> pepper" (Scamander 1927).

IT> _______________________________________________ IT> fpc-pascal maillist -
IT> http://lists.freepascal.org/mailman/listinfo/fpc-pascal