Re: Heavy SysInit Dependency

2021-05-19 Thread Chris Johns
> On 20 May 2021, at 2:05 am, Sebastian Huber > wrote: > > On 19/05/2021 15:09, Joel Sherrill wrote: >> On Wed, May 19, 2021 at 3:54 AM Sebastian Huber >> > > wrote: >>On 19/05/2021 10:23, Chris Johns wrote: >> >> On 19 May 2021, at 5:28 pm,

Re: Heavy SysInit Dependency

2021-05-19 Thread Joel Sherrill
On Wed, May 19, 2021 at 9:07 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 19/05/2021 15:25, Joel Sherrill wrote: > > > > Yeah. But if you use any method with errno, you get all this. I know the > > reent structure has to be initialized but why did it trigger opening > > /de

Re: Heavy SysInit Dependency

2021-05-19 Thread Sebastian Huber
On 19/05/2021 16:05, Sebastian Huber wrote: The most relevant architectures have TLS support, at least: arm, powerpc, sparc, nios2, m68k. Also: riscv. -- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94

Re: Heavy SysInit Dependency

2021-05-19 Thread Sebastian Huber
On 19/05/2021 15:25, Joel Sherrill wrote: Yeah. But if you use any method with errno, you get all this. I know the reent structure has to be initialized but why did it trigger opening /dev/console? The console device wasn't configured. Can the post driver hook dependency be cleaved from this cha

Re: Heavy SysInit Dependency

2021-05-19 Thread Sebastian Huber
On 19/05/2021 15:09, Joel Sherrill wrote: On Wed, May 19, 2021 at 3:54 AM Sebastian Huber > wrote: On 19/05/2021 10:23, Chris Johns wrote: >> On 19 May 2021, at 5:28 pm, Sebastian Hubermailto:sebastian.hu...@embedded-brains.de>>  wrote:

Re: Heavy SysInit Dependency

2021-05-19 Thread Joel Sherrill
On Wed, May 19, 2021 at 12:27 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello Joel, > > On 18/05/2021 23:40, Joel Sherrill wrote: > > Hi > > > > In working with Alex to reduce the minimum on his new BSP, we noticed > > that it is easy for a BSP to accidentally trip up and e

Re: Heavy SysInit Dependency

2021-05-19 Thread Joel Sherrill
On Wed, May 19, 2021 at 3:54 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 19/05/2021 10:23, Chris Johns wrote: > >> On 19 May 2021, at 5:28 pm, Sebastian Huber< > sebastian.hu...@embedded-brains.de> wrote: > >> > >> I am not sure how the dependency chain can be fixed with

Re: Heavy SysInit Dependency

2021-05-19 Thread Sebastian Huber
On 19/05/2021 10:23, Chris Johns wrote: On 19 May 2021, at 5:28 pm, Sebastian Huber wrote: I am not sure how the dependency chain can be fixed with the current struct _reent approach of Newlib. A modern approach would be to replace this structure with individual thread-local objects. This wo

Re: Heavy SysInit Dependency

2021-05-19 Thread Chris Johns
> On 19 May 2021, at 5:28 pm, Sebastian Huber > wrote: > > I am not sure how the dependency chain can be fixed with the current struct > _reent approach of Newlib. A modern approach would be to replace this > structure with individual thread-local objects. This would be technically > feasib

Re: Heavy SysInit Dependency

2021-05-18 Thread Sebastian Huber
Hello Joel, On 18/05/2021 23:40, Joel Sherrill wrote: Hi In working with Alex to reduce the minimum on his new BSP, we noticed that it is easy for a BSP to accidentally trip up and end up with a minimum.exe that is as much as 2x over what it should be. I have looked at a few BSPs and seen a