Silverfrost Forums

Welcome to our forums

Attempt to emit 32-bit instruction in /64 mode

23 Nov 2023 10:27 #30770

Hi all,

I'm porting a 32 bit app to 64 bit and on switching on debug, I get the following error message when building;

*** Attempt to emit 32-bit instruction in /64 mode

This is in a C++ file compiled with SCC. I understand that SCC is not really supported any more but I'd like to track down where the issue is coming from and see if I can work around it.

Paul previously helped port a very similar codebase previously and I do recall there were some of these errors in there. My memory is that they were resolved somehow as we now build that other codebase with debug.

I'm hoping I can dig and resolve these as well.

Thanks in advance

Ryan

23 Nov 2023 12:20 #30771

Ryan

We are willing to look at bugs for 64 bit SCC but at the moment we may not always aim to provide a fix.

I will send you a private message.

Paul

1 Dec 2023 3:05 #30816

I can also reproduce the problem.

The problem is caused by using some headers. These three headers provide e.g. this error.

#include <fstream.h>      // <----  *** Attempt to emit 32-bit instruction in /64 mode
// #include <iomanip.h>   // <----  *** Attempt to emit 32-bit instruction in /64 mode 
// #include <iostream.h>  // <----  *** Attempt to emit 32-bit instruction in /64 mode 

void my_test() {
 return;
}


 4/0257   inline int ios::setf(int flags, int mask)
   0009   }
*** Attempt to emit 32-bit instruction in /64 mode
    1 ERRORS  [<TEST> SCC/WIN32 Ver 4.60]
*** Compilation failed
1 Dec 2023 5:58 #30817

dgurok

Yes thank you. This is a known issue. At the moment alternative functions, to those requiring these, headers must be employed.

Please login to reply.