Hi, I have been experiencing problems compiling my latest gnu compile code nested in c program, which runs on ARM7. the code :
#if defined ARM_V6
__asm void RV_FASTCALL C_EdgeFilter4x4 _RV8(
PU8 pRec,
const U32 uPitch,
const U32 uWidth,
const U32 uHeight,
PU8 pStrengthV,
PU8 pStrengthH)
{
STMFD sp!,{r4-r11,lr}
SUB sp,sp,#4
STR r0,[sp,#0x00] ;pRec
LDR r4,[sp,#0x28] ;pStrengthV(r4)
RSB r6,r2,r1,LSL #2
ADD r6,r6,#4 ;update factor
ADD r0,r0,#0x04 ;r(r0)
MOV lr,r3 ;j
Ln1
ADD r4,r4,#1 ;pStrengthV += 1
SUB r5,r2,#4 ;i(r5)
Ln2
LDRB r8,[r4],#1 ;lTemp
MOV r7,r0 ;lpr(r7) = r
CMP r8,#0
BEQ Ln3
....
}
I keep on coming up against the following errors:
/tmp/ccro4Ndb.s: Assembler messages :
/tmp/ccro4Ndb.s: error: symbol 'Ln1' already defined
/tmp/ccro4Ndb.s: error: symbol 'Ln2' already defined
i revise Ln1 to LnVV1, then makefile, but come up with the same errors messages:
/tmp/ccro4Ndb.s: Assembler messages :
/tmp/ccro4Ndb.s: error: symbol 'LnVV1' already defined
/tmp/ccro4Ndb.s: error: symbol 'Ln2' already defined
Now, I have tried various ways to solve this problem, but the fact is I simply don't know what to do about it.
obviously "Ln1" and "Ln2" are not defined in any header file or any part of the program. Irritating enough.
Can anyone help?
Thank you,
gang
2 5268
It seems like function got inlined (twice?) and label duplicates in .s file.
google for gcc label inline assembler, or try noinline attribute.
donbock 2,426
Recognized Expert Top Contributor
How many times is this function called? You might try commenting out the function calls and then restoring them one at a time to see when the errors go away and when they return.
Could it be that assembly-language labels in an __asm function have global scope? That sounds pretty scary! It means that you could branch from the middle of one assembly language function into the middle of another. I certanily hope this isn't where your problem is coming from.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Jon |
last post by:
Hi!
I have a problem that have followed me for a long time.
When linking, sometimes this link error below arises. My solution is
always to remove all files in the project, throw away all debug-files
(.obj), rebuild, insert all files in the project and rebuild. After that
procedure, the linker usually proceed.
But not this time. So I decided to try and find the real problem, but
failed. So here I am.
When Linking in debug-mode, this...
|
by: yanwan |
last post by:
Hello
I met some problems in linking a project, and hope someone can give me some
advice.
-----------Configuration: lighting - Win32 Release--------------------
Linking...
LINK : warning LNK4075: ignoring /INCREMENTAL due to /FORCE specification
LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in
MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBC.lib(crt0dat.obj) : warning LNK4006: __exit already defined in
|
by: r.nikhilk |
last post by:
Hi,
We are porting C++ applications from 32 bit to 64 bit on AIX platform.
(The current version of AIX is 5.3 and xlC verison is 8.0). We are able
to compile the applications by including the -q64 option in xlC
compiler. But, when we link all these libraries to one of the main
applications, we are getting the following errors:
ld: 0711-317 ERROR: Undefined symbol: .FxCharFile::good() const
ld: 0711-317 ERROR: Undefined symbol:...
|
by: Prasad |
last post by:
HI,
I am a beginner in VC++..
I am trying to write a Win32 console application in visual studio..
I am using following header files..
#include <STRING>
using namespace std;
#include <hash_map>//from Standard template library
//and some other headers
|
by: John Sasso |
last post by:
In my Yacc .y file I defined:
%union {
int value;
struct Symbol Sym;
}
The Symbol struct I defined in a header file I #included in the Prologue
section of the .y file as:
| |
by: dasilva109 |
last post by:
Hi guys
I am new to C++ and need urgent help with this part of my code for a
uni coursework I have to submit by Thursday
//ClientData.h
#ifndef CLIENTDATA_H
#define CLIENTDATA_H
#include <string>
|
by: eberesche |
last post by:
Hello, as a novice in ASN.1 I have me to a project in C ++ under use of
ASN.1 - structures risquély. One of my colleagues means, this would
deal something with masochism ;-). Result should be a DLL which
provides the exchange of documents between a DMS and a remote data
base. My developing environment is MSVS v.7.1, and the ASN.1 - source
texts are generated with the compiler asn1c-0.9.20. Therefore I have in
the project cpp-, as well as c...
|
by: k.jayachandran |
last post by:
I have a very curious and unique problem here.
I'm creating a parser using bison and flex. i did all the development
work in a linux environment.
the project includes the source files output from flex and bison, then
several cpp files to create a data structure from the parser.
i used gcc as the compiler for the flex output(as it is a c file)
and g++ as the compiler for the remaining source files.
linked all the object files to create the...
|
by: dewi |
last post by:
Dear All,
I am trying to compile a C code using Visual C++. Can anyone explain how to solve it?
Thank You.
#include <math.h>
#include <string.h>
#include "RV2AJFRONT_NEW.h"
#include "RV2AJFRONT_NEW_private.h"
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |