Author Topic: problem building a 64 bits executable  (Read 6405 times)

ToutEnMasm

  • Member
  • *****
  • Posts: 1190
    • EditMasm
Re: problem building a 64 bits executable
« Reply #15 on: December 14, 2014, 02:12:55 AM »

It seems there is need to erase the old  binaries files before a new compile.
If not erase,the new code is bad coded.
 
Fa is a musical note to play with CL

qWord

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: problem building a 64 bits executable
« Reply #16 on: December 14, 2014, 05:47:16 AM »
I don't see what you call  "natural" pointer,the one i need change is size just  adding .X64
This avoid to made header for 32 and header for 64
yes, but why do you use that type in the example code? HBITMAP, HWND, ... are also aliases for XMASM in your include files.
I just thought on readability of the example code, e.g. hWnd:HWND vs. hWnd:XMASM.
MREAL macros - when you need floating point arithmetic while assembling!

habran

  • Member
  • *****
  • Posts: 1179
    • uasm
Re: problem building a 64 bits executable
« Reply #17 on: December 14, 2014, 05:50:12 AM »
Hi ToutEnMasm :biggrin:
Why do you always complicate things :icon_eek:
Use my version of JWasm and:
Code: [Select]
option casemap : none
option win64 : 11
option frame : auto
option stackbase : rsp
.xmm
It will align stack and data for you
and use WinInc
You can use Visual Studio Community 2013 for building and debugging you projects 
and your ASM life will blossom :P
Cod-Father

ToutEnMasm

  • Member
  • *****
  • Posts: 1190
    • EditMasm
Re: problem building a 64 bits executable
« Reply #18 on: December 14, 2014, 06:17:00 AM »
Quote
Why do you always complicate things :icon_eek:
Use my version of JWasm and:                          --------- GENERAL FAILURE ----------
I am happy than you ask that.
If you could made the little modify given here:
http://masm32.com/board/index.php?topic=3811.msg40240#msg40240
Your build will be usable for me.

For wininc,no thanks,too much limited
For  HBITMAP, HWND ... perhaps I could arrange this
Fa is a musical note to play with CL

habran

  • Member
  • *****
  • Posts: 1179
    • uasm
Re: problem building a 64 bits executable
« Reply #19 on: December 14, 2014, 06:38:09 AM »
This build is tailored for you my friend
RIP and AVX2 are also included
I hope you'll live happily ever after :biggrin:
Cod-Father

ToutEnMasm

  • Member
  • *****
  • Posts: 1190
    • EditMasm
Re: problem building a 64 bits executable
« Reply #20 on: December 14, 2014, 07:16:37 PM »
Thanks,
This solve the general failure.
After further tests,i need to erase the .pdb .
I have not find yet where it is open in the source code.
The obj file is erased by fopen "w."
Perhaps the .pdb isn't erase ?.
I have visual studio community 2013 and no problem with the build of the source code.
Fa is a musical note to play with CL

habran

  • Member
  • *****
  • Posts: 1179
    • uasm
Re: problem building a 64 bits executable
« Reply #21 on: December 14, 2014, 07:39:06 PM »
Does that mean that you are satisfied? :biggrin:
Cod-Father

ToutEnMasm

  • Member
  • *****
  • Posts: 1190
    • EditMasm
Re: problem building a 64 bits executable
« Reply #22 on: December 14, 2014, 07:57:15 PM »

I am satisfied but .. if you can help me on how erase the .pdb before compile,I get your goods advises.
 
Fa is a musical note to play with CL

habran

  • Member
  • *****
  • Posts: 1179
    • uasm
Re: problem building a 64 bits executable
« Reply #23 on: December 14, 2014, 08:09:02 PM »
Did you try to chose Rebuild Solution or Clean Solution from Build menu?
Cod-Father

ToutEnMasm

  • Member
  • *****
  • Posts: 1190
    • EditMasm
Re: problem building a 64 bits executable
« Reply #24 on: December 15, 2014, 06:09:18 AM »
 :t
rebuild and all is OK,it's just Magic.
thanks
Fa is a musical note to play with CL

habran

  • Member
  • *****
  • Posts: 1179
    • uasm
Re: problem building a 64 bits executable
« Reply #25 on: December 15, 2014, 06:18:21 AM »
That was my Christmas present to you :lol:
now I can sleep peacefully 8)
Cod-Father