It is currently Mon Sep 23, 2019 2:21 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: /PREPROCESS doesn't like ASM inside Macros
PostPosted: Sat Aug 17, 2019 6:31 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 609
Location: Linz, Austria
Code:
 Macro test()
  !NOP
  !NOP
  !NOP
 EndMacro

test()
Compiled the code with pbcompiler.exe "D:\Desktop\macrotest.pb" /PREPROCESS "C:\macrotest.pb" and this was the output:
Code:
 Macro test()
  !NOP
  !NOP
  !NOP
 EndMacro
!NOP(SOH)!NOP(SOH)!NOP
!NOP(SOH)!NOP
!NOP
Too much !NOP's and new (SOH)'s (start of header). Also the line endings are missing the carriage returns (CR), only the line feeds (LF) are present.


Maybe there is a connection to "pbcompiler.exe has problems with UTF8 encoded files" from an earlier bug report?! Also /PREPROCESS related: "With - EndWith bug when using /PREPROCESS"
It feels like /PREPROCESS is not doing all the IDE magic :?


Top
 Profile  
Reply with quote  
 Post subject: Re: /PREPROCESS doesn't like ASM inside Macros
PostPosted: Sat Aug 17, 2019 8:47 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 609
Location: Linz, Austria
But /PREPROCESS works fine if you write the code like this...
Code:
Macro test()
  EnableASM
  NOP
  NOP
  NOP
  DisableASM
EndMacro

test()


Top
 Profile  
Reply with quote  
 Post subject: Re: /PREPROCESS doesn't like ASM inside Macros
PostPosted: Sun Aug 18, 2019 2:58 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3056
Location: Boston, MA
Good catch.
I also found errors with the command line compiler with /threaded and dll creation.
I did not have enough time to investigate as the IDE worked correctly.
But, I would love to automate my build process confidently. :idea:

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: /PREPROCESS doesn't like ASM inside Macros
PostPosted: Sun Aug 18, 2019 4:22 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 609
Location: Linz, Austria
skywalk wrote:
Good catch.
I also found errors with the command line compiler with /threaded and dll creation.
I did not have enough time to investigate as the IDE worked correctly.
But, I would love to automate my build process confidently. :idea:
Did you file a bug report for that? I think only a few people from the community are working with the PB command line and if no one reports the bugs, they'll never get fixed :cry:


Top
 Profile  
Reply with quote  
 Post subject: Re: /PREPROCESS doesn't like ASM inside Macros
PostPosted: Sun Aug 18, 2019 5:30 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3056
Location: Boston, MA
There was too much confusion when the compiler dropped Ascii and *pointer.type.
It was a large dll target and hard to debug when the IDE just worked.
I will reconsider investigating the issue now that we have v571 LTS.

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye