Results 1 to 5 of 5

Thread: can someone help me compiling paq by myself?

  1. #1
    Member
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hello guys, i m not much of a programmer so i dunno why the errors occur, and how to deal with them, so please give me some help!

    1.when i tried to run "ml paq7asm.asm", it simply displayed lots of error messages(too long to post, just try it and see for yourself), and i dunno what's wrong with it. do i need to modify the code, or add certain parameters to ml?
    2.when i compile the paq8o8.cpp or paq8f.cpp with vc or icl(with /DNOASM), it reports several "variable redefinition: multiple initialization" errors in lines like "for (int i=0; i<64; i++)", what shall i do?
    3.can someone write a sse version of paq7asm.asm that doesn't require sse2? i want to optimize for my old pentium3.

  2. #2
    Member
    Join Date
    Jun 2009
    Location
    Kraków, Poland
    Posts
    1,474
    Thanks
    26
    Thanked 121 Times in 95 Posts
    1. you need to use nasm. matt provided the right parameters to compile it,
    2. code needs to be cleaned :P you can tell compiler to ignore those errors (warnings?),
    3. sse2 version is only 1 % faster than mmx version. sse1 version isn't worth the time to develop it,

  3. #3
    Expert
    Matt Mahoney's Avatar
    Join Date
    May 2008
    Location
    Melbourne, Florida, USA
    Posts
    3,255
    Thanks
    306
    Thanked 779 Times in 486 Posts
    Quote Originally Posted by noshutdown
    2.when i compile the paq8o8.cpp or paq8f.cpp with vc or icl(with /DNOASM), it reports several "variable redefinition: multiple initialization" errors in lines like "for (int i=0; i<64; i++)", what shall i do?
    Update your compiler The for-loop scoping rules were changed years ago.

  4. #4
    Member
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i m using icl9.1, supposed to be released in 2005, is it that old?
    and what's the difference between nasm and ml? does it produce more efficient machine codes?

  5. #5
    Member
    Join Date
    Jan 2007
    Location
    Moscow
    Posts
    239
    Thanks
    0
    Thanked 3 Times in 1 Post
    Any assembler must produce exact machine code for certain processor commands. But they may have different ways to "talk" with programmers. So different assemblers (fasm, masm, tasm, nasm, yasm, etc.) have different formatting of the same .asm code text.
    I don't know what "ml" stands for (may be it's masm's assembler), but you must get nasm to assemble .asm file in nasm's formatting.
    Besides, any c/cpp standart compatible compliler must compile the same code without erorrs. Your compiler seems to be recent enough, but it may have not full standart support. Or it may need some option during compiling, i can't say exactly.

Similar Threads

  1. PAQ turns up in the most unlikely places
    By willvarfar in forum Data Compression
    Replies: 0
    Last Post: 27th May 2010, 11:19
  2. Paq mixer theory
    By Shelwien in forum Data Compression
    Replies: 0
    Last Post: 22nd November 2009, 02:32
  3. PAQ TestBed Set
    By Skymmer in forum Download Area
    Replies: 0
    Last Post: 11th July 2009, 23:08
  4. Spec for portable PAQ
    By Matt Mahoney in forum Data Compression
    Replies: 40
    Last Post: 7th February 2009, 20:05
  5. New fast open-source paq-based jpeg compressor
    By Bulat Ziganshin in forum Forum Archive
    Replies: 14
    Last Post: 13th September 2007, 14:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •