digitalmars.D - htod, no version for Linux?
- Paul Dufresne <dufresnep gmail.com> Aug 17 2010
- Walter Bright <newshound2 digitalmars.com> Aug 17 2010
- dsimcha <dsimcha yahoo.com> Aug 17 2010
- Paul Dufresne <dufresnep gmail.com> Aug 17 2010
- Walter Bright <newshound2 digitalmars.com> Aug 17 2010
- Jacob Carlborg <doob me.com> Aug 18 2010
- Walter Bright <newshound2 digitalmars.com> Aug 18 2010
- Stewart Gordon <smjg_1998 yahoo.com> Aug 18 2010
- dsimcha <dsimcha yahoo.com> Aug 18 2010
- Stewart Gordon <smjg_1998 yahoo.com> Aug 18 2010
- Stewart Gordon <smjg_1998 yahoo.com> Aug 18 2010
- Michael Strashun <m.strashun gmail.com> Aug 18 2010
- Matthias Pleh <gonzo web.at> Sep 14 2010
- Stewart Gordon <smjg_1998 yahoo.com> Sep 16 2010
I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
Aug 17 2010
Paul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
Aug 17 2010
== Quote from Walter Bright (newshound2 digitalmars.com)'s articlePaul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
gcc extensions found in Linux.
Shouldn't a command line utility like this that doesn't have a lot of external dependencies be trivial to run on Wine?
Aug 17 2010
Shouldn't a command line utility like this that doesn't have a lot
dependencies be trivial to run on Wine?
Well, yes, it is just that I have a very slow connection and wine is not already installed.
Aug 17 2010
dsimcha wrote:== Quote from Walter Bright (newshound2 digitalmars.com)'s articlePaul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
gcc extensions found in Linux.
Shouldn't a command line utility like this that doesn't have a lot of external dependencies be trivial to run on Wine?
That won't help you in dealing with linux's #include files.
Aug 17 2010
On 2010-08-17 21:54, Walter Bright wrote:Paul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
How about the rest of the language or is the gcc extensions used in too many headers for htod to be useful ? -- /Jacob Carlborg
Aug 18 2010
Jacob Carlborg wrote:On 2010-08-17 21:54, Walter Bright wrote:Paul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
How about the rest of the language or is the gcc extensions used in too many headers for htod to be useful ?
I don't know how hard the problem is. I haven't spent any time attempting to make it work on linux.
Aug 18 2010
Walter Bright wrote:Jacob Carlborg wrote:On 2010-08-17 21:54, Walter Bright wrote:
No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
Cross-platform compatibility is a separate issue from compatibility with vendor-specific extensions to the language. Besides, there's a version of GCC (MinGW) for Windows as well.How about the rest of the language or is the gcc extensions used in too many headers for htod to be useful ?
I don't know how hard the problem is. I haven't spent any time attempting to make it work on linux.
I'd expect a program like this to be platform agnostic. Stewart.
Aug 18 2010
== Quote from Stewart Gordon (smjg_1998 yahoo.com)'s articleWalter Bright wrote:Jacob Carlborg wrote:On 2010-08-17 21:54, Walter Bright wrote:
No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
vendor-specific extensions to the language. Besides, there's a version of GCC (MinGW) for Windows as well.How about the rest of the language or is the gcc extensions used in too many headers for htod to be useful ?
I don't know how hard the problem is. I haven't spent any time attempting to make it work on linux.
Stewart.
Well, if we don't care about GNU extensions, then I'll ask again, what's wrong with Wine? I'm not saying it wouldn't be nice to have a Linux port of htod, but if Wine provides an easy workaround, I think it should be a very low priority.
Aug 18 2010
dsimcha wrote: <snip>Well, if we don't care about GNU extensions, then I'll ask again, what's wrong with Wine? I'm not saying it wouldn't be nice to have a Linux port of htod, but if Wine provides an easy workaround, I think it should be a very low priority.
Some users may object to installing Wine just to run one program, especially one that should have a Linux port anyway. But having some clue of what would need changing in the source code before it can be built to run natively under Linux might help to put it in better perspective. Stewart.
Aug 18 2010
Walter Bright wrote:Paul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
But if the headers the user wants to convert are written in standard C rather than GNU-extended C (especially likely if whoever wrote the code wants it to be portable), then that shouldn't be a problem. So denying Linux users the utility on this basis doesn't really make sense. Stewart.
Aug 18 2010
On 08/18/2010 05:44 PM, Stewart Gordon wrote:Walter Bright wrote:Paul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
But if the headers the user wants to convert are written in standard C rather than GNU-extended C (especially likely if whoever wrote the code wants it to be portable), then that shouldn't be a problem. So denying Linux users the utility on this basis doesn't really make sense. Stewart.
Is there DMC for Linux? I am currently working on tool named h2d2 for Linux ( guess what it means ;) ) and found a lot of good stuff like gcc pre-processor putting non-standard gcc-only tokens in result code, some gcc-oriented code in standard library headers ( by standard any ID starting with __ can be treated as reserved ID, so it is perfectly valid C99 ). So it is not only front-end adaptation, but also pre-processor adaptation at least.
Aug 18 2010
Am 17.08.2010 21:47, schrieb Paul Dufresne:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
Maybe it's to late for you, but I've discovered a small ruby-script (GPL'ed) in the dotmars-project, which use the gcc-xml tool. So it should also work on linux. But like htod, only c-code is supported. http://dotmars.googlecode.com/svn/trunk/tools/htd/ greets Matthias
Sep 14 2010
On 17/08/2010 20:47, Paul Dufresne wrote:I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
Just as to the point, why is htod closed source? Stewart.
Sep 16 2010









Paul Dufresne <dufresnep gmail.com> 