[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

1938.0. "Help Wanted with SMC" by AYOV28::ATHOMSON (C'mon, git aff! /The Kelty Clippie) Fri Dec 02 1988 04:54

    I've recently started to try and use the Smallc compiler (from FF#141)
    and I'm having some problems. Has anyone used it sucessfully ??
    
    I have : the Smallc compiler (SMC),
    	     The A68K assembler  (FF#110)
    	     Blink
    	     Small.lib (FF#92)
    
    which, according to FF and the documentation(?) that comes with
    Smallc, is all I need.
    
    Well, I duly made up the "Hello world" program - straight out of
    the K&R book, compiled it - no errors.
    I assembled it - no errors.
    I linked it - unresolved XREF QZPRINTF 
    (link command was BLlink hello.o smclib.o small.lib to hello)
    I looked at the .asm file and sho' nuff there it was:- JSR QZPRINTF
    Doing a type opt h on both smclib.o and small.lib showed a few QZ*
    functions (the only one appropriate was QZOUTCHAR or similar).
    
    I then tried recompiling the compiler - no problem. In the source
    files it uses pl("string") to print to the screen, so I tried that
    in hello.c - no joy, the unresolved XREF is now QZPL (sigh!)
    
    Has anyone had success with this setup ? What have I done wrong?
    What haven't I done ?
    
    
    					Alan T.
T.RTitleUserPersonal
Name
DateLines
1938.1Amiga Small C not completeNAC::PLOUFFCider Season Has BegunFri Dec 02 1988 09:449
    You didn't do anything wrong.  The compiler is missing a vital piece.
    
    I went through the same process after seeing Small C on a Fish disk.
    Willi Kusche apparently did not port the standard library, which
    is not part of the compiler but absolutely essential to make it
    work.  So, you will be _very_limited in what you can do with this
    software.
    
    Wes
1938.2Oh well..AYOV28::ATHOMSONC'mon, git aff! /The Kelty ClippieFri Dec 02 1988 10:506
    Aww :-(
    
    I suppose that I'd have to buy Lattice or Manx to get the standard
    library - then I wouldn't need Smallc --- sigh!!
    
    				Alan T.
1938.3NAC::PLOUFFCider Season Has BegunFri Dec 02 1988 11:1911
    Actually, you might try to hack it from somebody else's library.
    Byte Small C and the JPL Portable C Library (JPL-C?) are places
    to start.  Both of these are somewhere in the MS-DOS archives which
    I think are on MSBIS::.  Very little of the standard library needs
    to know about hardware, and I think that the little AmigaC library
    provides all the "hardware-dependent" stuff you need.
    
    "Smallib" contains hooks to all the Amiga operating system functions
    covered in the ROM Kernel Manuals.  So you really might eventually
    have quite a nice freebie system if you can get the rest of the
    standard library somewhere.
1938.4DRACOADODEM::MCGHIElooking for a door...Sun Dec 04 1988 04:436
    Have you thought of trying to use DRACO the other public domain
    compiler ?
    
    It does seem to work (most of the time).
    
    	Mike
1938.5Assuming you're not adamant about SMC...DIXIE1::MCDONALDSurly to bed, surly to rise...Mon Dec 05 1988 21:5210
    Yup.  I'll second that.  DRACO seems to be pretty good for just
    fooling around.  However, if you're planning to write any real tools
    or utilities, you'd better get a commercial compiler.  Chris Gray
    (I think that's who did DRACO) hasn't ported his linker over yet,
    and as a result of the way DRACO currently works, you end up with HUGE
    executables.
    
    Still, it's an EXCELLENT language for the price.   
    
    					John
1938.6Tried it.AYOV28::ATHOMSONC'mon, git aff! /The Kelty ClippieTue Dec 06 1988 05:1028
    
    
�< Note 1938.5 by DIXIE1::MCDONALD "Surly to bed, surly to rise..." >
�                 -< Assuming you're not adamant about SMC... >-
�
�    Still, it's an EXCELLENT language for the price.   
�    

    I have DRACO and I agree with your comments wholeheartedly, the
    size of the executables was a major factor in looking at SMC. The
    other main reason was that I'd like to buy a 'proper' C compiler
    sometime in the future and would like to stick to C rather than
    expend time and effort becoming more familiar with DRACO.
    I had a look at PDC (Fish #110) which works quite well at the level
    I'm programming at but it requires AMIGA.LIB to link with ( The
    .s (ASM) output has cross references to _main and _printf etc.)
    it won't link with SMALL.LIB (guess who doesn't have AMIGA.LIB ?)
    
    I have managed to compile small programs with SMC now. It can be
    done by closely examining the compiler source code and "including"
    the required functions down and down until you reach the primitives
    that SMALL.LIB and SMCLIB.O do know about. It is very slow though,
    each character is output singly, rather like running at 300 baud,
    so perhaps it's not worth the effort after all.
    
    		Thanks for all the advice anyway,
    
    				Alan T.
1938.7Upgraded -> sell last version?WJG::GUINEAUTue Dec 06 1988 07:407
I don't know the legal ramifications, but now that I have Lattice 5.0
I was concidering selling my Complete Lattice 4.01 system real cheap.

Is this legal?

John
1938.8I hope so...AYOV28::ATHOMSONC&#039;mon, git aff! /The Kelty ClippieTue Dec 06 1988 11:3012
    
�< Note 1938.7 by WJG::GUINEAU >
�                      -< Upgraded -> sell last version? >-
�I don't know the legal ramifications, but now that I have Lattice 5.0
�I was concidering selling my Complete Lattice 4.01 system real cheap.
�Is this legal?
�John

    I don't know, John. But if you ever find out or decide that it is....
    Please keep me in mind. 
    
    				Alan T.
1938.9read the license agreementJFRSON::OSBORNEBlade WalkerTue Dec 06 1988 13:2813
                               -< I hope so... >-
�                      -< Upgraded -> sell last version? >-
�Is this legal?

Um, I don't think so- what you LEGALLY buy is a one-CPU license for a
specific named product, not the actual software, I believe. This prevents
problems between someone who has 20 copies in fire storage for security
being equivalent to someone with 20 copies distributed to their friends.
Read the license agreement- it has to be included with the disks, or it's
not binding.

disclaimer: I am not a lawyer, this is not legal advice. I can't fix a
parking ticket, even...
1938.10WJG::GUINEAUTue Dec 06 1988 16:3216
Right. But if I put the Manual, Original and my backup copies of the disks
together, then it's "as sold". I don't think I have the original 
"license agreement" envelope that the floppies were in.

I think the license says the disks may be used by many people on many different
systems - as long as it's only used by one person at a time (i.e you
and your friend can't each use a copy.) But if I give the entire 4.01
system to a single individual and NOT retain a copy for myself, then
it's still only used by one person (albiet not the original purchaser).


Lawers??


John
1938.11Another 2 cents worthVCSESU::MOORETom Moore MRO1-3/SL1 297-5224Tue Dec 06 1988 17:2810
John,
  I think the key to this question is did you upgrade your licence or buy a new
licence. If you bought a new licence then it has nothing to do with the old
licence and you can sell the old one. If you upgraded your licence, then you
still only have one licence and if you sell it then you should stop using the
software no matter what you gave the buyer. 
  The usual disclainers apply and I'm sure that whatever you do there are
those that will praise you and damn you.

	-Tom-
1938.12But what do I know???HPSTEK::SENNATue Dec 06 1988 17:297
    Acually I read somewhere that you can sell software to someone
    but you have to notify the company that has you on their upgrade
    list, in writing that you have transfered ownership to them. Thus
    ending your contract with them totally! In other words you have
    to give up ALL your copies of previous and recent upgrades!!!
    It makes good sense to me....I'll try to remember where I saw this
    and post it!
1938.13Legal for SuperBaseLEDS::HAGERI Remember Bird and CliffordTue Dec 06 1988 18:436
    I bought SuperBase Professional recently from an individual.  I
    called the U.S. distributor and not only did they accept the
    transfer of ownership, they graciously offered me the latest
    update, free of charge!  Of course, the book clearly stated that
    this was legal.  As they say, check the warranty.
1938.14Try to be nice and the Law comes after you :-)WJG::GUINEAUWed Dec 07 1988 08:2110
Well, I ordered V5.0 as an "upgrade" (i.e. I already owned v4.0 so it was
at a much lower cost).

V5.0 did come as a complete kit and with it's own license.

So now I'm confused.  I will post this on the LAttice BBS and reply here...


John
1938.15Verdict ?AYOV28::ATHOMSONC&#039;mon, git aff! /The Kelty ClippieFri Dec 09 1988 07:524
    
    Any verdict from the Lattice BBS yet John ?
    
    				Alan T.
1938.16WJG::GUINEAUFri Dec 09 1988 08:076
To be honest, I haven't had a chance to enter it yet (school after work)

I'm going to check tonight...


John
1938.17...WJG::GUINEAUMon Dec 12 1988 09:267
...Working...

I put a note in the Lattice BBS Friday night. I expect some kind of answer
tonight...


John
1938.18I don't quite see why thoughWJG::GUINEAUMon Dec 12 1988 22:1212
Just got off Lattice's BBS. The SYSOP said:

"NO!!! You CANNOT sell your Lattice version 4 compiler"


Bummer!

Oh well, it was worth a try.


John
1938.19You already "sold" it (back to Lattice).BOMBE::MOORESo many holes to plugTue Dec 13 1988 17:0211
    Think of it this way:
    
    Lattice gave you a "trade-in credit" for your old compiler against the
    cost of purchasing the newer version.  They *could* have required the
    return of your old disks before sending you the new ones.  Some places
    operate that way, usually with a lot of grumbling from their customers.
    In theory you transferred your old license back to Lattice in exchange
    for a new one.  Lattice is nice enough to trust you for proper disposal 
    of superseded materials.  Don't betray that trust.
    
    Disclaimer:  I am not a lawyer, nor have I played one on TV...   8)
1938.20OKWJG::GUINEAUTue Dec 13 1988 17:313
I'll but that! Thanks.

John
1938.21:-(AYOV28::ATHOMSONC&#039;mon, git aff! /The Kelty ClippieMon Dec 19 1988 08:044
    
    That's too bad, but it does make sense.
    
    				Alan T.