ARM assembly ---- IMPORT

Publisher:chuyifeiLatest update time:2016-08-13 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The IMPORT pseudo-operation tells the compiler that the current symbol is not defined in this source file, but is defined in other source files. The symbol may be referenced in this source file, and regardless of whether the symbol is actually referenced in this source file, the symbol will be added to the symbol table of this source file.

Syntax format:

IMPORT symbol{[WEAK]}

Where symbol is the name of the declared symbol. It is case sensitive.

[WEAK] After specifying this option, if the symbol is not defined in all source files, the compiler will not generate any error message, and the compiler will not search for the symbol in the library that is not currently included.

Instructions for use:

Use the IMPORT pseudo-operation to declare that a symbol is defined in another source file. If the connector cannot resolve the symbol during the link process and the [WEAK] option is not specified in the IMPORT pseudo-operation, the connector will report an error. If the connector cannot resolve the symbol during the link process and the [WEAK] option is specified in the IMPORT pseudo-operation, the connector will not report an error, but will do the following:

  • If the symbol is referenced by a B or BL instruction, the symbol is set to the address of the next instruction, and the B or BL instruction is equivalent to a NOP instruction.
  • Otherwise the sign is set to 0
Reference address:ARM assembly ---- IMPORT

Previous article:Successfully ported NET-SNMP to ARM platform
Next article:ARM stack mode

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号