name of map file
BCS
none at anon.com
Sun Sep 12 18:56:09 PDT 2010
Hello Andrej,
> Yeah but using -of creates an executable in the directory I provide.
> RDMD is supossed to be used with hiding the executable in a temp dir,
> afaik.
>
> So it's hashing at play, ok. Just wanted to know why.
>
> Personally I'd like RDMD to hide the map and deps files as well, I
> don't know why it only hides the executable and leaves the rest of the
> trash behind. (okay it's not trash, but for quick compile-test cycles
> I don't need the map and dependancy files).
>
Hinding the exe isn't the point, having files act like scripts is. Putting
the exes in some other common place allows better caching.
> On Sun, Sep 12, 2010 at 10:29 PM, Nick Sabalausky <a at a.a> wrote:
>
>> "Andrej Mitrovic" <none at none.none> wrote in message
>> news:i6jc5g$1p2a$1 at digitalmars.com...
>>
>>> Just a quick question, why does the map file have a long name like
>>> so:
>>>
>>> file_test-d-40DA973DB4C6AD075993AB5CD9866DDE.map ?
>>>
>> Because you're using rdmd and not using -of.
>>
>> rdmd comes up with an executable filename by hashing the source
>> file's content (I'm not 100% sure why, something about
>> filename-uniqueness or caching and change-tracking, I'd imagine). And
>> dmd always uses the executable filename as the name of the map file
>> (which makes sense when you consider executables made from multiple
>> modules).
>>
>> If you use -of, or if you just use dmd directly, then that hash value
>> doesn't get added.
>>
--
... <IXOYE><
More information about the Digitalmars-d-learn
mailing list