Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: C link library information...  (Read 1003 times)

0 Members and 1 Guest are viewing this topic.

Offline 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
  • Total likes: 0
    • 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 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
  • Total likes: 0
    • 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 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
  • Total likes: 0
    • 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

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 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 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\\"