The MASM Forum Archive 2004 to 2012

Specialised Projects => Pelle's Macro Assembler Development => Topic started by: hutch-- on January 31, 2006, 12:48:07 AM

Title: Strange request.
Post by: hutch-- on January 31, 2006, 12:48:07 AM
I have run into an oddity when building a collection of modules into a library, POASM does the job fine as long as the modules are in a valid syntax it understands but it just sits there with no screen output unless there is an error.

I wonder if its possible to add an assembler switch like /LOGO or /V for verbose so you know each module has been built ?

Now as you have the author as a captive audience, here is the place to do some advertising.


Pelle's Amazing Macro Assembler Copyright (c) 2006 Pelle Orinius All Rights Reserved
Assembling: H:\asm\yourfile.asm
Title: Re: Strange request.
Post by: MusicalMike on January 31, 2006, 05:43:34 PM
Even with text mode applications, you should still include SOME bells and wistles. Like how many passes the assembler made, time it took, size of file, output, etc. Also, wouldn't it be nice if the assembler automaticly invoked the linker after it was done.
Title: Re: Strange request.
Post by: Mark Jones on January 31, 2006, 06:02:18 PM
Interesting Mike, but then you'd defeat the idea of backwards-compatibility, plus how would you give explicit linker commands?
Title: Re: Strange request.
Post by: PellesC on January 31, 2006, 08:09:03 PM
In my opinion a command line tool should only say something when it has something to say - like a warning or error. I *hate* chatty tools. I have a verbose option in some tools - because sometimes there are more to (optionally) say. For an assembler, I can't really think of anything interesting to say/display...

Pelle
Title: Re: Strange request.
Post by: zooba on February 01, 2006, 07:03:55 AM
Quote from: MusicalMike on January 31, 2006, 05:43:34 PM
wouldn't it be nice if the assembler automaticly invoked the linker after it was done.

That's what batch files are for :U

Quote from: PellesC on January 31, 2006, 08:09:03 PM
In my opinion a command line tool should only say something when it has something to say - like a warning or error. I *hate* chatty tools. I have a verbose option in some tools - because sometimes there are more to (optionally) say. For an assembler, I can't really think of anything interesting to say/display...

Pelle

I agree. Though I do like having an optional logo (on by default) at the start as Hutch suggested above. I find it even more disconcerting when there is no output at all (at least you can always '>nul' to hide it :wink)
Title: Re: Strange request.
Post by: Mark Jones on February 01, 2006, 04:07:38 PM
Personally I like the way PORC reports data:


C:\Masm32\Bin\RC.EXE /v "SCR.rc"
Pelles Resource Compiler, Version 3.00.2
Copyright (c) Pelle Orinius 1997-2005
Using codepage 1252.


Writing 0x18, id = 1, language = 0x409, offset = 0x20
PORC: SCR.rc(2): warning: Unrecognized or misplaced token: "STRING"
Writing DIALOGEX, id = 1000, language = 0x409, offset = 0x2A0

Make finished.
Total compile time 703 ms
Title: Re: Strange request.
Post by: MusicalMike on February 01, 2006, 05:36:50 PM
QuoteThat's what batch files are for
Good point, I totally forgot about that.
Title: Re: Strange request.
Post by: PellesC on February 01, 2006, 06:14:45 PM
I can add a verbose option to POASM too - but as I said, I can't think of anything useful to display. Displaying something for the sake of displaying something, seems silly. Like all my other tools, the logo is displayed, along with available options, for no/invalid arguments. This is enough. Number of source lines, size of code, etc. is, in my opinion, useless information. Any other ideas?

(The C compiler driver (CC) will in the future also support POASM - for a combination of assembling and linking. Since it's more associated with the C compiler, it has little to do with POASM at the moment...)

Pelle
Title: Re: Strange request.
Post by: hutch-- on February 01, 2006, 11:22:56 PM
Pelle,

As long as it is an option that is not inflicted without choice, it is useful for building libraries to know which file is being assembled and while you are at it, put your name on it.