Jump to content

Short C:\tcc\tcc.exe to just tcc

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Well, here I am, having problems(again) with my compilers. Since I wanna move away from TC 3.0, I checked out some many different compilers, and my favorite is Tiny C Compiler(tcc). It's light, and is 9 times faster(at least they said so) than gcc.
And... I kinda like my stuff the simple yet effective way, like MicroASM(I'm still searching for it's download, PM me if you can help).
So I just use Notepad.

I managed it to add "Compile" and "Compile and Run" options to the '.c' extension, but I still need to create some kind of shortcut to tcc - Instead of typing ' C:\tcc\tcc.exe -run file ' every time, I wanna type just ' tcc.exe -run file ', like with cmd.exe.

How can I do that?
Thanks folks...

Posted Image
There is no problem that cannot be solved by the use of high explosives.


#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
In control panel -> system, there should be an advanced tab where you can add enviornmental variables. Simply edit the one that says "PATH=", add a semicolon to the end, and type "C:\tcc\"

Atleast that is how I remember it, that will allow CMD to include TCC's path without typing it, much like how you access programs like "ping" without typing C:\windows\ping.exe
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Oh, ok thanks :)

Posted Image
There is no problem that cannot be solved by the use of high explosives.