Page 1 of 1

Assembler variable values such as 'outdir'

Posted: Tue Feb 16, 2016 12:18 pm
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?

Re: Assembler variable values such as 'outdir'

Posted: Tue Feb 16, 2016 12:24 pm
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 9810 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.

Re: Assembler variable values such as 'outdir'

Posted: Tue Feb 16, 2016 12:33 pm
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?

Re: Assembler variable values such as 'outdir'

Posted: Tue Feb 16, 2016 1:15 pm
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.

Re: Assembler variable values such as 'outdir'

Posted: Tue Feb 16, 2016 1:29 pm
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.

Re: Assembler variable values such as 'outdir'

Posted: Tue Feb 16, 2016 1:55 pm
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 9797 times