This project is read-only.

Compiler Error

Topics: Compiler
Feb 12, 2013 at 11:30 AM
Hi,

I am using this code in Cosmos, After compiling it throws an error
byte test = 0x01;
            test++;
And the error as follows
6   Error   Cosmos.IL2CPU.x86->IL->Conv_U1.cs->The size 1 should not exist, because it is always pushed as Int32 or Int64!
   at Cosmos.IL2CPU.X86.IL.Conv_U1.Execute(MethodInfo aMethod, ILOpCode aOpCode) in d:\source\Cosmos\source2\IL2CPU\Cosmos.IL2CPU.X86\IL\Conv_U1.cs:line 43
   at Cosmos.IL2CPU.AppAssembler.ProcessMethod(MethodInfo aMethod, List`1 aOpCodes) in D:\source\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\AppAssembler.cs:line 155
   at Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) in D:\source\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 433
   at Cosmos.Build.MSBuild.IL2CPUTask.Execute() in d:\source\Cosmos\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:line 231   C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    32  10  AFSBoot
Please help me.
Feb 12, 2013 at 1:28 PM
<div dir="ltr">What cosmos version are you using?<br> <br> </div> <div><br> <br> <div>On Tue, Feb 12, 2013 at 12:30 PM, AtomOS <span dir="ltr">&lt;<a href="mailto:notifications@codeplex.com" target="_blank">notifications@codeplex.com</a>&gt;</span> wrote:<br> <blockquote style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex"> <div> <p>From: AtomOS</p> <div>Hi, <br> <br> I am using this code in Cosmos, After compiling it throws an error<br> <pre><code>byte test = 0x01; test&#43;&#43;;</code></pre> And the error as follows<br> <pre><code>6 Error Cosmos.IL2CPU.x86-&gt;IL-&gt;Conv_U1.cs-&gt;The size 1 should not exist, because it is always pushed as Int32 or Int64! at Cosmos.IL2CPU.X86.IL.Conv_U1.Execute(MethodInfo aMethod, ILOpCode aOpCode) in d:\source\Cosmos\source2\IL2CPU\Cosmos.IL2CPU.X86\IL\Conv_U1.cs:line 43 at Cosmos.IL2CPU.AppAssembler.ProcessMethod(MethodInfo aMethod, List`1 aOpCodes) in D:\source\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\AppAssembler.cs:line 155 at Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) in D:\source\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 433 at Cosmos.Build.MSBuild.IL2CPUTask.Execute() in d:\source\Cosmos\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:line 231 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets 32 10 AFSBoot </code></pre> Please help me.<br> </div> <div> <p>Read the <a href="http://cosmos.codeplex.com/discussions/432818#post999940" target="_blank"> full discussion online</a>.</p> <p>To add a post to this discussion, reply to this email (<a href="mailto:Cosmos@discussions.codeplex.com?subject=[Cosmos:432818]" target="_blank">Cosmos@discussions.codeplex.com</a>)</p> <p>To start a new discussion for this project, email <a href="mailto:Cosmos@discussions.codeplex.com" target="_blank"> Cosmos@discussions.codeplex.com</a></p> <p>You are receiving this email because you subscribed to this discussion on CodePlex. You can <a href="https://cosmos.codeplex.com/subscriptions/thread/project/edit" target="_blank"> unsubscribe or change your settings</a> on codePlex.com.</p> <p>Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at <a href="http://codeplex.com" target="_blank">codeplex.com</a></p> </div> </div> </blockquote> </div> <br> </div>
Feb 12, 2013 at 5:05 PM
cosmos release 92560
Feb 12, 2013 at 6:51 PM
<p dir="ltr">Might be still existing bug then. Now we need someone to fix it. Problem is we're low on development resources.. :-(<br> </p> <div>Op 12 feb. 2013 18:05 schreef &quot;atomos&quot; &lt;<a href="mailto:notifications@codeplex.com">notifications@codeplex.com</a>&gt; het volgende:<br type="attribution"> <blockquote style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex"> <div> <p>From: atomos</p> <div>cosmos release 92560<br> </div> <div> <p>Read the <a href="http://cosmos.codeplex.com/discussions/432818#post1000103" target="_blank"> full discussion online</a>.</p> <p>To add a post to this discussion, reply to this email (<a href="mailto:Cosmos@discussions.codeplex.com?subject=[Cosmos:432818]" target="_blank">Cosmos@discussions.codeplex.com</a>)</p> <p>To start a new discussion for this project, email <a href="mailto:Cosmos@discussions.codeplex.com" target="_blank"> Cosmos@discussions.codeplex.com</a></p> <p>You are receiving this email because you subscribed to this discussion on CodePlex. You can <a href="https://cosmos.codeplex.com/subscriptions/thread/project/edit" target="_blank"> unsubscribe or change your settings</a> on codePlex.com.</p> <p>Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at <a href="http://codeplex.com" target="_blank">codeplex.com</a></p> </div> </div> </blockquote> </div>