🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #308914

Re: Linker C nie widzi procedury assemblerowej

#308914
From: Marek Borowski
Date: Sun, 16 Oct 2016 20:25
22 lines
2051 bytes
On 16.10.2016 16:06, Borneq wrote:
> W dniu 16.10.2016 o 16:03, Borneq pisze:
>> W dniu 16.10.2016 o 15:42, Borneq pisze:
>>> W dniu 16.10.2016 o 14:48, Marek Borowski pisze:
>>>> Jak widac dodaje prefix __g wiec nie dziwne ze linker nie znajduje
>>>> symbolu. Albo uzywaj __gmpn_addmul_1 w c albo zrezygnuj z LEAF_PROC.
>>>
>>> Dzięki, ta LEAF_PROC jest niepotrzebna, wyrzuciłem, jeszcze coś jest.
>>>
>> Jeszcze __g w innym miejscu było, już w porządku
> A jak to będzie w C++?
> W C++ jest coś takiego jak namespace, ale czy to będzie widoczne w
> assemblerze? czy też trzeba będzie tam dodawać jakiś prefiks do nazwy
> aby była unikalna w całym projekcie?
Jak najbardziej. Zobacz name decoration.
Pytanie czy bezpośrednie lączenie C++ z asm jest konieczne. Mozna wszak 
zadeklarowac funkcje asemblerowe jako extern "C".


Pozdrawiam

Marek
Technical Details
Message-ID: <nu0nnl$t6d$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!wsisiz.edu.pl!.POSTED.84-10-32-242.static.chello.pl!not-for-mail
References: <ntt002$su4$1@node1.news.atman.pl> <ntt002$su4$1@node1.news.atman.pl> <almarsoft.7768711683328874933@news.v.pl> <ntvlv2$k5e$1@node1.news.atman.pl> <ntvsuu$9ke$1@portraits.wsisiz.edu.pl> <nu004f$v3c$1@node1.news.atman.pl> <nu01b1$ik$1@node1.news.atman.pl> <nu01h5$ik$2@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!wsisiz.edu.pl!.POSTED.84-10-32-242.static.chello.pl!not-for-mail
From: Marek Borowski <marek@nazwisko.com>
Newsgroups: pl.comp.lang.c
Subject: Re: Linker C nie widzi procedury assemblerowej
Date: Sun, 16 Oct 2016 22:25:23 +0200
Organization: http://www.wit.edu.pl
Message-ID: <nu0nnl$t6d$1@portraits.wsisiz.edu.pl>
References: <ntt002$su4$1@node1.news.atman.pl> <ntt002$su4$1@node1.news.atman.pl> <almarsoft.7768711683328874933@news.v.pl> <ntvlv2$k5e$1@node1.news.atman.pl> <ntvsuu$9ke$1@portraits.wsisiz.edu.pl> <nu004f$v3c$1@node1.news.atman.pl> <nu01b1$ik$1@node1.news.atman.pl> <nu01h5$ik$2@node1.news.atman.pl>
Mime-Version: 1.0
Injection-Date: Sun, 16 Oct 2016 20:25:25 +0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="84-10-32-242.static.chello.pl:84.10.32.242"; logging-data="29901"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
In-Reply-To: <nu01h5$ik$2@node1.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit