forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Attempt to emit 32-bit instruction in /64 mode

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1885

PostPosted: Sun Oct 11, 2020 11:25 am    Post subject: Attempt to emit 32-bit instruction in /64 mode Reply with quote

The C function below can be compiled without error using SCC 4.31 except when the /debug /64 options are used. With those options, the SCC compiler says:

Code:
[Silverfrost SCC/WIN32 Ver 4.31 Copyright (c) Silverfrost Ltd 2020]
   0013   }
*** Attempt to emit 32-bit instruction in /64 mode
    1 ERRORS  [<I2A> SCC/WIN32 Ver 4.31]
*** Compilation failed


The source code of the C function:

Code:
void inssrt2a(int *a, int *idx, int l, int r){
int key,j,i,iv;
for(i=l+1; i<=r; i++){
   key = a[i]; iv=idx[i];
   j=i-1;
   while(j >= l && a[j] > key){
      a[j+1] = a[j];
      idx[j+1]=idx[j];
      j--;
      }
   a[j+1] = key; idx[j+1]=iv;
   }
}
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Oct 12, 2020 7:51 am    Post subject: Reply with quote

mecej4

Thank you for the feedback.

64 bit SCC remains generally unsupported. In particular /DEBUG is currently not supported.

The latest SCC can be downloaded via this link...

https://www.dropbox.com/s/yst0phs89tv35se/scc.zip?dl=0
Back to top
View user's profile Send private message AIM Address
mecej4



Joined: 31 Oct 2006
Posts: 1885

PostPosted: Mon Oct 12, 2020 12:18 pm    Post subject: Reply with quote

Thanks, Paul.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group