Assembler variable values such as 'outdir'

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

Assembler variable values such as 'outdir'

Post by gtc »

Using Windows, Flowcode 6.1.

Where can I see the current value of an assembler variable such as 'outdir'.

Also, where in Flowcode are such variables' values set/mapped/changed?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Assembler variable values such as 'outdir'

Post by Benj »

Hello,

If you go to View -> Global options -> Locations tab then there are drop down arrows that show you the internal variables.
FlowcodeInternalVars.jpg
FlowcodeInternalVars.jpg (49.87 KiB) Viewed 9806 times
I'm not sure where the $(outdir) is set (probably a registry key) but the $(srcdir) and $(appdir) are the two we use a lot for components, compilation etc.

gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

Re: Assembler variable values such as 'outdir'

Post by gtc »

Thanks for the lightning quick reply!

I don't recall setting my outdir value, unless it was done during initial installation?

Reason I ask is that I was using a friend's FC V6 implementation today and the hex file was being written into some bizarre windows temp directory. I have no idea how that came about and neither does he.

Surely there must be an easy way of changing that variable's assignment?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Assembler variable values such as 'outdir'

Post by Benj »

Hello,

Ok can you check the View -> Project Options -> Locations Tab.

The Send Compiler Output To should be set to

$(srcdir)

This should set the $(outdir) variable to equal your Flowcode project directory when you compile.

Let me know how you get on.

gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

Re: Assembler variable values such as 'outdir'

Post by gtc »

I take it you mean View -> Global Options -> Locations Tab (as before).

So, one uses the "..." button to select the desired directory. I'll try that when I next have access to his machine.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Assembler variable values such as 'outdir'

Post by Benj »

I take it you mean View -> Global Options -> Locations Tab (as before).
Yes sorry, I should look at things rather then using my memory :D
So, one uses the "..." button to select the desired directory. I'll try that when I next have access to his machine.
No you shouldn't have to do this for every project. If you type in the value $(srcdir) then this should default to your project directory and will change dynamically as you load different projects.
GlobOpts.jpg
GlobOpts.jpg (31.18 KiB) Viewed 9793 times

Post Reply