Welcome, Guest. Please login or register.

Author Topic: C link library information...  (Read 1403 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
C link library information...
« on: April 30, 2007, 04:41:13 PM »
Hi. Can someone advise a good source of information on the environment to make a C link libary, specially if it possible to access some internal information like variable types.

:pint:
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: C link library information...
« Reply #1 on: April 30, 2007, 04:43:49 PM »
In C variable type isn't saved anywhere in binary format, so the answer is "no".
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Re: C link library information...
« Reply #2 on: April 30, 2007, 04:53:32 PM »
Ah, ok, reason I'm asking is that I've almost completed a very complicated macro to make serialization easier and less bulkier. The internal code to actually do it is not finished so I was hoping making it a link libarry would make it more easier.

Anyway, what environment would you advise to make a link library, might be stupid question indeed but it's the 1st time I do it :-D
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: C link library information...
« Reply #3 on: April 30, 2007, 05:00:47 PM »
Ahh, you're making your own link library then?

Well then the tools differ depending on the compiler used. For example the GNU tool is ar.
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Re: C link library information...
« Reply #4 on: April 30, 2007, 05:14:12 PM »
"Ahh, you're making your own link library then?"

Yes, would that make any difference to the 1st question ? Surely, types are not available to the coder, but I had a vague hope that the library could access some extra info..
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: C link library information...
« Reply #5 on: April 30, 2007, 05:26:27 PM »
Well, obviously the same rules apply. If you need some information of the actual types, you need to provide that yourself in some way.

Déjà vu, didn't we go thru all this before already?
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: C link library information...
« Reply #6 on: April 30, 2007, 05:34:20 PM »
With SASC you use OML (Object Module Linker).
It is totally easy and works every time. :-)
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Re: C link library information...
« Reply #7 on: April 30, 2007, 05:37:10 PM »
"Déjà vu, didn't we go thru all this before already?"

Yes, but I've changed the method completely a few times since then. 1st I thought about using strings as some of you purposed, then realized macros would provide way much better syntax. Since then I've changed the initial macro concept I was going to use and  the macros themselves are in the 7th incarnation :)
Maybe tomorrow I'll have another idea and change it all over again but I don't think so, this is probably the one that will stay since I've already lost so much time thinking about the different possibilities.
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Re: C link library information...
« Reply #8 on: April 30, 2007, 05:43:26 PM »
@ChaosLord

Cool, I got a SASC install here and it rules. Might try to use VBCC though, as I'd like it to run on AOS4 and MOS too.
\\"We made Amiga, they {bleep}ed it up\\"