www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Is there an 'rdmd' equivalent for C lang?

reply ikelaiah <iwan.kelaiah gmail.com> writes:
Hi,

I'm enjoying learning D, especially using [rdmd 
tool](https://dlang.org/rdmd.html), where I can edit-run quickly, 
that checks dependencies and freshness of files in a project.
It does feel like working with Python, but with C/C++ like syntax 
that I am familiar with.

Out of curiosity, does anyone know if there is such a tool for C 
that is as convenient as `rdmd`?

Thanks.
Sep 02 2022
next sibling parent reply Jack <jckj33 gmail.com> writes:
On Saturday, 3 September 2022 at 03:07:15 UTC, ikelaiah wrote:
 Hi,

 I'm enjoying learning D, especially using [rdmd 
 tool](https://dlang.org/rdmd.html), where I can edit-run 
 quickly, that checks dependencies and freshness of files in a 
 project.
 It does feel like working with Python, but with C/C++ like 
 syntax that I am familiar with.

 Out of curiosity, does anyone know if there is such a tool for 
 C that is as convenient as `rdmd`?

 Thanks.
https://stackoverflow.com/questions/10766900/is-there-a-repl-for-c-programming i think i have used some of those ages ago tho. give try out
Sep 02 2022
parent reply ikelaiah <iwan.kelaiah gmail.com> writes:
On Saturday, 3 September 2022 at 03:34:32 UTC, Jack wrote:
 https://stackoverflow.com/questions/10766900/is-there-a-repl-for-c-programming

 i think i have used some of those ages ago tho. give try out
Gems! Many thanks for this Jack. I'll try them out. Regards, Ikel
Sep 03 2022
parent reply Antonio <abcde ggmail.com> writes:
On Saturday, 3 September 2022 at 21:16:51 UTC, ikelaiah wrote:
 On Saturday, 3 September 2022 at 03:34:32 UTC, Jack wrote:
 https://stackoverflow.com/questions/10766900/is-there-a-repl-for-c-programming

 i think i have used some of those ages ago tho. give try out
Gems! Many thanks for this Jack. I'll try them out. Regards, Ikel
Hi Ikel, A bit late but I thought it could be useful. There's a C compiler (tcc[1]) from Fabrice Bellard that has the option '-run' that allows to automatically run the generated executable. Hope this helps. Antonio [1] https://bellard.org/tcc/
Sep 05 2022
parent ikelaiah <iwan.kelaiah gmail.com> writes:
On Monday, 5 September 2022 at 17:46:27 UTC, Antonio wrote:

 A bit late but I thought it could be useful.
Hi Antonio, not late at all!
 There's a C compiler (tcc[1]) from Fabrice Bellard that has the 
 option '-run' that allows to automatically run the generated 
 executable.
Never heard of Tiny C Compiler before. WI will give it a try. Thank you. -Ikel
Sep 11 2022
prev sibling next sibling parent reply bachmeier <no spam.net> writes:
On Saturday, 3 September 2022 at 03:07:15 UTC, ikelaiah wrote:
 Hi,

 I'm enjoying learning D, especially using [rdmd 
 tool](https://dlang.org/rdmd.html), where I can edit-run 
 quickly, that checks dependencies and freshness of files in a 
 project.
 It does feel like working with Python, but with C/C++ like 
 syntax that I am familiar with.

 Out of curiosity, does anyone know if there is such a tool for 
 C that is as convenient as `rdmd`?

 Thanks.
Doesn't rdmd work with C code? D compilers can compile C code, so long as you don't rely too heavily on the preprocessor. I've never tried it with C files though.
Sep 05 2022
parent ikelaiah <iwan.kelaiah gmail.com> writes:
On Monday, 5 September 2022 at 21:53:03 UTC, bachmeier wrote:

 Doesn't rdmd work with C code? D compilers can compile C code, 
 so long as you don't rely too heavily on the preprocessor. I've 
 never tried it with C files though.
Thanks Bachmeier. I tried the example given in [ImportC](https://dlang.org/spec/importc.html) page but unable to get it to work. I will revisit it again -Ikel
Sep 11 2022
prev sibling parent reply Tejas <notrealemail gmail.com> writes:
On Saturday, 3 September 2022 at 03:07:15 UTC, ikelaiah wrote:
 Hi,

 I'm enjoying learning D, especially using [rdmd 
 tool](https://dlang.org/rdmd.html), where I can edit-run 
 quickly, that checks dependencies and freshness of files in a 
 project.
 It does feel like working with Python, but with C/C++ like 
 syntax that I am familiar with.

 Out of curiosity, does anyone know if there is such a tool for 
 C that is as convenient as `rdmd`?

 Thanks.
Idk about C but there is one for C++: https://rawcdn.githack.com/root-project/cling/d59d27ad61f2f3a78cd46e652cd9fb8adb893565/www/index.html
Sep 06 2022
parent ikelaiah <iwan.kelaiah gmail.com> writes:
On Tuesday, 6 September 2022 at 12:53:48 UTC, Tejas wrote:
 Idk about C but there is one for C++:

 https://rawcdn.githack.com/root-project/cling/d59d27ad61f2f3a78cd46e652cd9fb8adb893565/www/index.html
Thanks Tejas for the reference to Cling. It does look promising. -Ikel
Sep 11 2022