Re: Mersenne: primes source

1999-09-19 Thread Conrad Curry



On Sat, 18 Sep 1999, George Woltman wrote:

 At 03:01 PM 9/18/99 -0400, Darxus wrote:

 I have a question though.  Why make the Linux source dependant on code
 which needs to be assembled under DOS, when there is an assembler for
 Linux (as) ?
 
 There is a ton of assembly source code.  Converting it from one syntax
 to another would be a great deal of work - and possibly error prone.
 As of two years ago there was not a tool to do the conversion automatically.

  It would be easier to convert the source from MASM to NASM.  Both use
intel syntax.  NASM is free and its source code available.  This is a list
of the object formats it supports.

  * bin   flat-form binary files (e.g. DOS .COM, .SYS)
aout  Linux a.out object files
aoutb NetBSD/FreeBSD a.out object files
coff  COFF (i386) object files (e.g. DJGPP for DOS)
elf   ELF32 (i386) object files (e.g. Linux)
as86  Linux as86 (bin86 version 0.3) object files
obj   MS-DOS 16-bit/32-bit OMF object files
win32 Microsoft Win32 (i386) object files
oldrdfRelocatable Dynamic Object File Format v1.1
rdf   Relocatable Dynamic Object File Format v2.0
ieee  IEEE-695 (LADsoft variant) object file format

  The NASM homepage is http://www.web-sites.co.uk/nasm/index.html

  There are several programs that can convert between intel and gas, but
usually require some help in converting.  One that can convert between
NASM or MASM or Gas is at http://hermes.terminal.at/intel2gas/

  Though if the object file is available and can be converted, I don't
see the advantage of compiling from the source.


_
Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ  -- http://www.tasam.com/~lrwiman/FAQ-mers



Re: Mersenne: primes source

1999-09-19 Thread Jason Stratos Papadopoulos

On Sun, 19 Sep 1999, Conrad Curry wrote:

   There are several programs that can convert between intel and gas, but
 usually require some help in converting.  One that can convert between
 NASM or MASM or Gas is at http://hermes.terminal.at/intel2gas/

Note that this program was designed to convert from gas to nasm;
conversion from nasm to gas is spotty, and the data files used needed
extensive modification to even nearly get floating point in gas correct.
I can make the changes available, but this program is not ready for
wholesale conversion of very large amounts of Intel floating point source.

jasonp

_
Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ  -- http://www.tasam.com/~lrwiman/FAQ-mers



Re: Mersenne: primes source

1999-09-19 Thread John R Pierce

   It would be easier to convert the source from MASM to NASM.  Both use
 intel syntax.  NASM is free and its source code available.  This is a list
 of the object formats it supports.

if I recall correctly, the assembler code also makes extensive use of the
MASM macro facilities to generate highly repetitious code sequences.  Do
NASM's macros work the same as MASM's?  There are a lot of subtle things
going on in MASM when you get into nested macros and parameter expansions
and so forth.

-jrp


_
Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ  -- http://www.tasam.com/~lrwiman/FAQ-mers



Re: Mersenne: primes source

1999-09-18 Thread John R Pierce

 I have a question though.  Why make the Linux source dependant on code
 which needs to be assembled under DOS, when there is an assembler for
 Linux (as) ?

Probably because of the hugely differing syntax and macro facilities.  The
assembler code was originally written with MASM on a Microsoft platform, if
you feel up for converting it to `as` by all means, feel free.  Make sure
the resultant macro expansions are identical to the last byte of binary
code.

-jrp


_
Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ  -- http://www.tasam.com/~lrwiman/FAQ-mers



Re: Mersenne: primes source

1999-09-18 Thread George Woltman

Hi,

At 03:01 PM 9/18/99 -0400, Darxus wrote:
I've just switched to the GIMPS.

Welcome aboard.

I have a question though.  Why make the Linux source dependant on code
which needs to be assembled under DOS, when there is an assembler for
Linux (as) ?

There is a ton of assembly source code.  Converting it from one syntax
to another would be a great deal of work - and possibly error prone.
As of two years ago there was not a tool to do the conversion automatically.

Also, the source seems to be released something like "feel free to use
this code to make the world a better place as you see fit", but doesn't
actually have a license.  I would incourage you to release it under either
the GNU General Public License (http://www.gnu.org/copyleft/gpl.html), or
if you want to allow commercial use, the BSD license (which I'm
significantly less familiar with).

I may look into changing this when the v19 sources are released.

Regards,
George

_
Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ  -- http://www.tasam.com/~lrwiman/FAQ-mers