Compilation Error 1

Source: Internet
Author: User

1.

Error message:

Liubo. S:1: Error:bad expression

Liubo. S:1: Error:junk at end of line, first unrecognized character is ' 0 '

Error:

. equ mem_control_address, #0x48000000 @ macro definition, storage Controller start address

. equ sdram_address, #0x30000000 @ macro definition, The start address of SDRAM

Correct:

. equ mem_control_address, 0x48000000 @ macro definition, storage Controller start address

. equ sdram_address, 0x30000000 @ macro definition, The start address of the SDRAM

Cause of Error:

Write one more #

2.

Error message:

Liubo. S:23:error:junk at end of line, first unrecognized character is ' * '

Error:

@**********************************

@ off-guard Dog @

**********

Error Correction:

@**********************************

@ off-guard Dog @

@**********

Cause of Error:

Forget to add @ before the comment

3.

Error message:

Liubo. S:29:error:immediate expression requires a # prefix--' mov pc,1r '

Error:

mov pc, 1r

Error Correction:

Mov PC, LR

Cause of Error:

In the Code L wrote a

4.

Error message:

Liubo. S:66:error:bad instruction ' Copy_steppingstone4k_to_sdram :'

Error:

Copy_steppingstone4k_to_sdram:

Error Correction:

Copy_steppingstone4k_to_sdram:

Cause of Error:

After the colon is written in the Chinese input method, should be English, English and the front letter spacing less

5.

Error message:

Liubo. S:70:error:junk at end of line, first unrecognized character is ' 1 '

Error:

1:

Error Correction:

1:

Cause of Error:

It is also because the colon is written in Chinese, so it is not recognized as a code snippet

6.

Error message:

/opt/friendlyarm/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-ld:warning:cannot find entry symbol _start; Defaulting to 30000000

liubo_s.o:in function ' On_sdram ':

(. text+0x14): Undefined reference to ' main '

liubo_c.o:in function ' On_sdram ':

(. text+0x14): Undefined reference to ' main '

Error:

Arm-linux-gcc-c-O liubo_s.o liubo. S

Arm-linux-gcc-c-O liubo_s.o liubo. S

Error Correction:

Arm-linux-gcc-c-O liubo_s.o liubo. S

Arm-linux-gcc-c-O liubo_s.o liubo.c

Cause of Error:

The second one is wrong, it should be C file .

7.

Error message:

Liubo.c:14:error:stray ' \357 ' in program

Error:

/ /***********

Error Correction:

//***********

Cause of Error:

The same is the input method, the Chinese input under the interval is very large, and There is no color hint in the Gvim, in the English input method // There is a small interval of color hint.

Compilation Error 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.