Re: [BLACKBOX] Seasoned Linux.

From: [at]} <Norayr>
Date: Thu, 13 Jan 2011 04:37:36 +0400

----boundary-LibPST-iamunique-1634540155_-_-
Content-type: text/plain

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>From that point of view
> it may be a safer approach to use the Oberon-to-C translation and then
> let the gcc do the rest.
>
> I know it sounds dirty. But it may prove unrealistic to develop and
> maintain native backends.

No, it's not.
Compiler is a merely translator which gets source code of the human
formal language which describes a program, and outputs a binary executable.
Of course, it is better to avoid third party tools dependencies. Even
fpc sometimes affected by "GNU make" bugs. They may use internal
assembler, they may use internal linker, but using their own make is too
much. In the real world it is almost impossible to not have external
dependencies.
On the other hand, it does not mean, that we should not be careful and
it is good to avoid that kind of dependencies whenever reasonable and
feasible.

For now, it is very nice to have via-C translators. I personally feel
control and composure because I know, I can develop by using technology
I love on almost any hardware I face, thanks to oo2c and Ofront creators.
oo2c author started native x86 backend once. Yes, oo2c is a real
compiler, it has an intermediate representation, it optimizes, and it
has backend which generates low level C code, very similar to assembler
So, he give up the work with x86 backend, because there was no practical
sense. May, be, only compilation speed would be better, currently it's
slow because of gcc's slowness. But the compiler itself, runtime checks,
the library, are quite impressive.
So, having a C backend for a compiler brings a very strong advantage -
portability, and very weak drawbacks - compilation speed mostly, code is
more fat, than it could be, memory usage could be smaller, but this does
not compare with the advantages we get.
I believe, it is impossible to get something and not loose something.
Even laws of thermodynamics tell so. They also tell that every task
could have an optimal solution. I'm not a physicist, just weakly
remember something, so, don't be cruel if I messed :)
I think, that via-C compilation is an optimal solution in a number of
tasks and areas.

Sincerely,
Norayr





On 01/13/11 04:07, Wojtek Skulski wrote:
> On Thu, 13 Jan 2011, Norayr Chilingarian wrote:
>
>> c) in case of BlackBox - write several native backends for different
>> CPU's
>
> I just want to warn you that embedded CPUs are maybe a little different
> from i386 because there are bugs in their silicon. For example, the
> Blackfin BF533 is only supported by Analog Devices' ucLinux team from
> silicon revision 0.3 and up. Two earlier silicon revisions were too
> buggy for the ucLinux compiler team.
>
> Those guys are embedded in the company's environment and thus they know
> their silicon. It may be very labor-intensive to repeat their work based
> on the data sheets and published silicon errata. From that point of view
> it may be a safer approach to use the Oberon-to-C translation and then
> let the gcc do the rest.
>
> I know it sounds dirty. But it may prove unrealistic to develop and
> maintain native backends.
>
> I somehow feel it would be more realistic to define an Oberon-friendly
> compatibility layer which would only depend on the Linux kernel
> independent from the CPU. Then address all the work to that
> compatibility layer using gcc. In such a way all the silicon
> dependencies will be handled by the native teams at Analog Devices,
> Texas Instruments, Freescale, etc. It is simply not possible to
> duplicate their work. They have insider knowledge which outsiders are
> very unlikely to gain.
>
>
> Wojtek
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNLklQAAoJEDbv/aplkZ1FW/UIANA8VJ4cevDsOMKTNVaDA2Ec
257oIoCjgRG/GBCsAu1K9I87H2RZ4Nq2phBImBOcyRa1CA9SJ5xtO1/l5eH0Y4PH
Xs4Knn1xFw3d87iIoFDVKOAV8RajWmnGkPeLfFTHkzsUthELmzbNRP5Iik/PVhBS
RKgyYmyWveFhqmiBxB6rVZqJL5QFE49pwgW0af8Tzo0z9obbbCaRY9zwKDI3RSbV
oVWMVDonYmAOafC896LZQGzHDTyQZqcEhDr8FTx/THi934LCH/39Qg6oiSsxqbgC
R/FiNYZngkrejl1dHWyYqmzSmCdcPNwKSpX4UK0BTKSFjqlzRcIZdb0JqOcs6x8=
=fpdy
-----END PGP SIGNATURE-----


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1634540155_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyN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lvRkRWS09BVjhSYWpXbW5Ha1BlTGZGVEhrenNVdGhFTG16Yk5SUDVJaWsvUFZoQlNccGFy
DQpSS2d5WW15V3ZlRmhxbWlCeEI2clZacUpMNVFGRTQ5cHdnVzBhZjhUem8wejlvYmJiQ2FSWTl6
d0tESTNSU2JWXHBhcg0Kb1ZXTVZEb25ZbUFPYWZDODk2TFpRR3pIRFR5UVpxY0VoRHI4RlR4L1RI
aTkzNExDSC8zOVFnNm9pU3N4cWJnQ1xwYXINClIvRmlOWVpuZ2tyZWpsMWRIV3lZcW16U21DZGNQ
TndLU3BYNFVLMEJUS1NGanFselJjSVpkYjBKcU9jczZ4OD1ccGFyDQo9ZnBkeVxwYXINCi0tLS0t
RU5EIFBHUCBTSUdOQVRVUkUtLS0tLVxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1
YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBM
SVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQp9
----boundary-LibPST-iamunique-1634540155_-_---
Received on Thu Jan 13 2011 - 01:37:36 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:19 UTC