Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!rit!tropix!moscom!ur-valhalla!uhura.cc.rochester.edu!sunybcs!rutgers!cs.utexas.edu!uunet!mcvax!kth!draken!d88-eli From: d88-eli@nada.kth.se (Erik Liljencrantz) Newsgroups: comp.lang.c Subject: iAPX86 code for ABS (using Microsoft C?) Message-ID: <1202@draken.nada.kth.se> Date: 22 Jul 89 22:22:56 GMT Reply-To: d88-eli@nada.kth.se (Erik Liljencrantz) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 20 I remember a review of Microsoft's C compiler for MS-DOS that stated it produced no-conditional-jump-abs-code. The function to convert an integer to a positive integer was performed without a conditional jump (i.e. JS or something). I'm very interested in this piece of code, so if someone who does have a Microsoft C-compiler could try something like main() { int a,b; a=-10; b=abs(a); } and take a close look at the assembly code generated, I would appreciate that. This kind of reversed engineering (or what is it?) can't be illegal as it actually was published in a magazine some time ago (maybe two years so it must have been Microsoft C version 4.00 that was reviewed...) By the way, is there a forum for assembly language on Intel processors? Thanks in advance, Erik Liljencrantz d88-eli@nada.kth.se <= Answer by mail and I'll summarize...