NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to determine supported languages in a particular installation of gcc?
----- Original Message -----
| From: "Thomas Mueller" <mueller6725%twc.com@localhost>
| To: "netbsd-users" <netbsd-users%netbsd.org@localhost>
| Sent: Sunday, September 15, 2019 2:02:49 AM
| Subject: Re: How to determine supported languages in a particular installation of gcc?
| From Thomas Dickey:
|
|> I'd compile a sample program using the "-x" option, for the given language, and
|> check for error status.
|
| -x <language> Specify the language of the following input files.
| Permissible languages include: c c++ assembler none
| 'none' means revert to the default behavior of
| guessing the language based on the file's extension.
|
| That does not answer my question!
|
| -x (language) only works for c, c++ and assembler and is only for how an input
| file is treated.
|
| Question was how to determine what languages were supported by a particular gcc.
| Gcc is capable of supporting other languages besides C, C++ and assembler,
| including Objective C, Objective C++, Ada, Go, Java, Fortran, D (any others?).
| But building gcc to support all those languages is not a trivial task.
developing sample programs and writing a shell script which checks for error
status is a task well within the expected abilities of an average developer.
Perhaps you should ask for help on Stack Overflow.
--
Thomas E. Dickey <dickey%invisible-island.net@localhost>
http://invisible-island.net
ftp://ftp.invisible-island.net
Home |
Main Index |
Thread Index |
Old Index