7008 - LatticeMicoSystem: Error:"'asm' underclared"
Description:
When compiling a design in Lattice Mico System that includes the "asm" syntax, below error will be encountered:
Error:"'asm' underclared"
Solution:
There are two possible solutions:
1. Use the syntax as "__asm__" instead of "asm" and add -std=c99
2. If user still wants to preserve using the "asm" keyword, try to add -std=gnu99. The -std=gnu99 enables "asm" GNU extension while the double underscore syntax marks the asm keyword as reserved.