BackupGGCode / open-source-spin-compiler

A C/C++-based port of the Parallax Propeller Spin/PASM Compiler
0 stars 0 forks source link

Error compiling test_cache.spin #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This defect may be prematurely reported. If so, please pardon my enthusiasm.

What steps will reproduce the problem?
1. copy propcomp to folder=propgcc/loader/spin
2. in folder, ./propcomp test_cache.spin

What is the expected output?

No Failure. Compiles with BSTC -b test_cache.spin. Not tested with propeller 
tool lately.

What do you see instead?

$ ./propcomp test_cache.spin 
Propeller Spin/PASM Compiler (c)2012 Parallax Inc. DBA Parallax Semiconductor.
Compiled on Jan 21 2012
Compileing test_cache.spin...Expected "=" "[" "," or end of line
Failed.

What version of the product are you using? On what operating system?

Latest source (r13) on linux.

Please provide any additional information below.

Original issue reported on code.google.com by jsden...@gmail.com on 21 Jan 2012 at 7:31

Attachments:

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by reltham on 22 Jan 2012 at 9:15

GoogleCodeExporter commented 9 years ago
The first problem is that my code expected the spin files to be in unicode 
16bit form (all the ones saved by PropTool are, and the ones in the Library 
directory are too). Your files are in ASCII format. I added code to detect this 
and handle it properly.

The second problem is that there is an obj in test_cache.spin that you called 
'dev' this is the same name as a block designator. Prop Tool v1.3 complains 
about this also (Block designator must be in fist column.).  If I change the 
name of that obj to be 'ddev' instead (two place) then test_cache.spin now 
compiles.

I am going to call this one fixed. Since my compiler produces the same error as 
the official Prop Tool one.

Original comment by reltham on 22 Jan 2012 at 10:19